pupil_recording_interface.VideoDeviceFLIR
- class pupil_recording_interface.VideoDeviceFLIR(device_uid, resolution, fps, settings=None)
Bases:
pupil_recording_interface.device.video.BaseVideoDeviceFLIR video device.
- __init__(device_uid, resolution, fps, settings=None)
Constructor.
- Parameters
device_uid (str) – The serial number of the device. If None, will use the first camera in the Spinnaker device list.
resolution (tuple, len 2) – Desired horizontal and vertical camera resolution.
fps (int) – Desired camera refresh rate.
Methods
Config(*args, **kwargs)Configuration for this class.
__init__(device_uid, resolution, fps[, settings])Constructor.
from_config(config, **kwargs)Create a device from a StreamConfig.
from_config_list(config_list)Create a device from a list of StreamConfigs.
get_capture(serial_number, resolution, fps)Get a capture instance for a device by name.
get_frame_and_timestamp([mode])Get a frame and its associated timestamp.
restart()Try restarting this device.
Run hook(s) after processing thread(s) finish(es).
Run hook(s) before dispatching processing thread(s).
start()Start the device.
stop()Stop the device.
Attributes
device_typeWhether this device has been started.
- classmethod Config(*args, **kwargs)
Configuration for this class.
- classmethod from_config(config, **kwargs)
Create a device from a StreamConfig.
- classmethod from_config_list(config_list)
Create a device from a list of StreamConfigs.
- classmethod get_capture(serial_number, resolution, fps, settings=None)
Get a capture instance for a device by name.
- get_frame_and_timestamp(mode='img')
Get a frame and its associated timestamp.
- property is_started
Whether this device has been started.
- restart()
Try restarting this device.
- run_post_thread_hooks()
Run hook(s) after processing thread(s) finish(es).
- run_pre_thread_hooks()
Run hook(s) before dispatching processing thread(s).
- start()
Start the device.
- stop()
Stop the device.