Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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.

NameTypeDescription
imageIMAGEJCVThe current frame of the video stream
starttimestampSTARTTIMESTAMPThe start time stamp of the frame. Depends on the timestampmode option, will be omitted when set to 'none'endtimestampENDTIMESTAMPThe 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
languagejs
titleVideoStream Protocol Handler
linenumberstrue
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)

...