Dahua_GrabImage_WithTimeout


Captures a frame using Dahua.

Syntax

C++
Python
 
def Dahua_GrabImage_WithTimeout(
	state: Dahua_State,
	inTimeout: int,
	/,
	*,
	inDeviceID: str | None = None,
	inInputQueueSize: int = 4,
	inFrameRate: float | None = None,
	inExposureTime: float | None = None,
	inGain: float | None = None,
	inBlackLevel: int | None = None,
	inTriggerEnabled: bool | None = None,
	inTriggerSource: DahuaTriggerSource | None = None,
	inTriggerActivation: DahuaTriggerActivation | None = None
)
-> (
	outResult: bool,
	outImage: Image | None,
	outFrameID: int | None,
	outTimestamp: int | None
)

Parameters

Name Type Range Default Description
Input will be modified ioState Dahua_State
Input value inDeviceID str | None None Device identifying number
Input value inTimeout int 1 - Maximum time to wait for frame in milliseconds
Input value inInputQueueSize int 1 - 200 4 Capacity of output frames queue
Input value inFrameRate float | None None Requested camera frame rate in frames per second
Input value inExposureTime float | None None Camera frame exposition time
Input value inGain float | None None Analog gain of source image in device raw unit
Input value inBlackLevel int | None None Black level of source image
Input value inTriggerEnabled bool | None None Configure trigger enable
Input value inTriggerSource DahuaTriggerSource | None None Source of acquisition trigger
Input value inTriggerActivation DahuaTriggerActivation | None None Circumstances defining when the trigger is activated
Output value outImage Image | None Captured frame
Output value outFrameID int | None Captured frame ID
Output value outTimestamp int | None Captured frame timestamp

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.