Dahua_GrabImage


Captures a frame using Dahua.

Syntax

C++
Python
 
def Dahua_GrabImage(
	state: Dahua_State,
	outImage: Image,
	/,
	*,
	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,
	outFrameID: int,
	outTimestamp: int
)

Parameters

Name Type Range Default Description
Input will be modified ioState Dahua_State
Input value inDeviceID str | None None Device identifying number
Input value inInputQueueSize int 0 - 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 Captured frame
Output value outFrameID int Captured frame ID
Output value outTimestamp int 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.