You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The BaslerCamera transport handler allows receiving videos and images from Basler cameras using the Basler Pylon SDK. The operator can both operate in pull and push mode and can be used with the Command operator. 

Options

  • serialnumber: The serial number of the camera to use. If no serial number is specified, the first free camera will be used. (optional)

Operation Modes

 

  • 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

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 and display it in a window:

PQL

VideoStream Protocol Handler
video = ACCESS({source='Video', 
				 wrapper='GenericPull', 
				 transport='none', 
				 protocol='OpenCVVideoStream', 
				 datahandler='Tuple',
				 options=[
							['streamUrl', 'camera://0'],
							['timeStampMode', 'none']
					     ],
				 schema= [	
        					['image', 		'IMAGEJCV']
        				 ]})
 
/// or shorter, as a source operator:
video = OPENCVVIDEO({source='Video', options=[['streamUrl', 'camera://0'], ['timeStampMode', 'none']]})
 
output = UDO({class='ShowImageJCV', init='0,Video'}, video)

 

 

  • No labels