SynView_GrabImage
Captures a frame using SynView.
Syntax
C++
Python
def SynView_GrabImage( state: SynView_State, inImageFormatParams: SynViewImageFormatParams, outImage: Image, /, *, inDeviceID: str | None = None, inInputQueueSize: int = 4, inColorFormat: SynViewColorFormat = SynViewColorFormat.Mono8, inAcquisitionParams: SynViewAcquisitionParams = SynViewAcquisitionParams(None, None, None, None, None), inAnalogParams: SynViewAnalogParams = SynViewAnalogParams(None, None, None) ) -> ( outResult: bool, outFrameID: int, outTimestamp: int )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | SynView_State | |||
![]() |
inDeviceID | str | None | None | Tries to find the camera in all available IDs (UserID, VendorName, ModelName...) | |
![]() |
inInputQueueSize | int | 1 - ![]() |
4 | Capacity of input frames queue |
![]() |
inColorFormat | SynViewColorFormat | SynViewColorFormat.Mono8 | Image color format | |
![]() |
inAcquisitionParams | SynViewAcquisitionParams | SynViewAcquisitionParams(None, None, None, None, None) | ||
![]() |
inImageFormatParams | SynViewImageFormatParams | |||
![]() |
inAnalogParams | SynViewAnalogParams | SynViewAnalogParams(None, None, None) | ||
![]() |
outImage | Image | Captured frame | ||
![]() |
outFrameID | int | Output frame number; 0 if not supported | ||
![]() |
outTimestamp | int | Output image timestamp; 0 if not supported |




