PySpin only supports specific python versions. Be sure to pair your python version with the package you install. As of June 2025, the latest version of python supported is 3.10.
Note on properties:
FLIR cameras can have different property names across models and firmware versions. For example, some cameras use “AcquisitionFrameRateEnabled” while others use “AcquisitionFrameRateEnable”. The following utility functions provide a robust way to handle these differences.
*Set a camera attribute with support for alternative attribute names.
FLIR cameras with different models or firmware versions may use slightly different property names for the same functionality. This function attempts to set an attribute using the primary name first, then falls back to alternative names if provided.
Args: camera: Camera object attribute_name: Primary attribute name to try value: Value to set alternatives: List of alternative attribute names to try if primary fails required: If True, raise an error if none of the attributes exist
Returns: bool: True if attribute was set successfully*
*Get minimum exposure time in microseconds with graceful fallback.
Different FLIR camera models expose the minimum exposure time through different property names. This function tries several known property names and provides a reasonable default if none are found.
Args: camera: Camera object
Returns: float: Minimum exposure time in microseconds*