OpuDevice(opu_type: str, frametime_us: int, exposure_us: int, sequence_nb_prelim=0, cam_ROI: Tuple[Union[List[int], numpy.ndarray], Union[List[int], numpy.ndarray]] = None, verbose=False)¶
Class for hardware interface with a LightOn OPU.
Implements a context manager interface for acquiring access to the OPU, but most properties are gettable and settable even though the OPU isn’t active.
bool, whether the hardware resources have been acquired
list(int), Shape of the DMD, in pixels and cartesian coordinates
Gain of the camera output (not implemented in every camera)
Acquires hardware resource.
Do nothing if the resource is already acquired in the current object. If the resource isn’t available, do 4 retries until it is available, or raise a OPUUsedByOther exception
Equivalent is to use context manager interface:
with opu: outs = opu.transform(ins)
self.OPUUsedByOther – if hardware has already been acquired in another process or object
Does internal allocation of a number of images, necessary for transform2 calls
Returns multi-line string with device and libraries versions