...
pull:
Odysseus polls the camera repeatedly to grab images as fast as possible.push:
The camera pushes images into Odysseus. This is required if the camera is set to send images automatically or if a Command operator is used. (see below)
Commands
TODO
Schema
The output of the handler provides the following attributes as a schema. Attributes can be in arbitrary order and will be identified by the type.
Name | Type | Description | |||
---|---|---|---|---|---|
image | IMAGEJCV | The current frame of the video stream | |||
starttimestamp | STARTTIMESTAMP | The start time stamp of the frame. Depends on the timestampmode option, will be omitted when set to 'none' | endtimestamp | ENDTIMESTAMP | The end time stamp of the frame. Depends on the timestampmode option, will be omitted when set to 'none' |
Example
This example shows how to grab a video from a webcam basler camera and display it in a window:
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
video = ACCESS({source='Video', wrapper='GenericPull', transport='noneBaslerCamera', protocol='OpenCVVideoStreamnone', datahandler='Tuple', options=[ ['streamUrlserialnumber', 'camera://021448278'], ['timeStampMode', 'none'] ], schema= [ ['image', 'IMAGEJCV'], 'IMAGEJCV ['timestamp', 'STARTTIMESTAMP'] ]}) /// or shorter, as a source operator: video = OPENCVVIDEOBASLERCAMERA({source='Video', options=[['streamUrlserialnumber', 'camera://0'], ['timeStampMode', 'none21448378']]}) output = UDO({class='ShowImageJCV', init='0,Video'}, video) |
...