STC_GrabImage_WithTimeout
Captures a frame using an Omron device.
Syntax
C++
Python
def STC_GrabImage_WithTimeout( state: Omron_State, inTimeout: int, /, *, inDeviceID: str | None = None, inInputQueueSize: int = 4, inPixelFormat: OmronPixelFormat | None = None, inRoi: Box | None = None, inAcquisitionMode: OmronAcquisitionMode | None = None, inAcquisitionFrameCount: int | None = None, inFrameRate: float | None = None, inExposureAuto: bool | None = None, inExposureTime: float | None = None, inGainAuto: bool | None = None, inGain: float | None = None, inGamma: float | None = None, inBlackLevel: float | None = None, inTriggerEnable: bool | None = None, inTriggerSource: OmronTriggerSource | None = None, inTriggerActivation: OmronTriggerActivation | None = None, inTriggerDelay: float | None = None ) -> ( outResult: bool, outImage: Image | None, outFrameID: int | None, outTimestamp: int | None )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | Omron_State | |||
![]() |
inDeviceID | str | None | None | Device identifying number | |
![]() |
inTimeout | int | 1 - ![]() |
Maximum time to wait for frame in milliseconds | |
![]() |
inInputQueueSize | int | 1 - 200 | 4 | Capacity of output frames queue |
![]() |
inPixelFormat | OmronPixelFormat | None | None | Format of the pixels provided by the device | |
![]() |
inRoi | Box | None | None | Region of interest | |
![]() |
inAcquisitionMode | OmronAcquisitionMode | None | None | Acquisition mode of the device | |
![]() |
inAcquisitionFrameCount | int | None | None | Number of frames to acquire in MultiFrame Acquisition mode | |
![]() |
inFrameRate | float | None | None | Acquisition rate in Hertz at which the frames are captured | |
![]() |
inExposureAuto | bool | None | None | Enables or disables the automatic exposure time control | |
![]() |
inExposureTime | float | None | None | Exposure time in microseconds | |
![]() |
inGainAuto | bool | None | None | Enables or disables the automatic gain control | |
![]() |
inGain | float | None | None | Gain as an absolute physical value | |
![]() |
inGamma | float | None | None | Gamma correction of pixel intensity | |
![]() |
inBlackLevel | float | None | None | Black level as an absolute physical value | |
![]() |
inTriggerEnable | bool | None | None | Controls if the selected trigger is active | |
![]() |
inTriggerSource | OmronTriggerSource | None | None | Source of the acquisition trigger | |
![]() |
inTriggerActivation | OmronTriggerActivation | None | None | Activation mode of the trigger | |
![]() |
inTriggerDelay | float | None | None | Delay in microseconds to apply after the trigger reception before activating it | |
![]() |
outImage | Image | None | Captured frame | ||
![]() |
outFrameID | int | None | Captured frame ID | ||
![]() |
outTimestamp | int | None | Captured frame timestamp |




