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

Operation Modes

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

Example

This example shows how to grab a video from a basler camera and display it in a window:

PQL

video = ACCESS({source='Video', 
				 wrapper='GenericPull', 
				 transport='BaslerCamera', 
				 protocol='none', 
				 datahandler='Tuple',
				 options=[
							['serialnumber', '21448278'],
					     ],
				 schema= [	
        					['image', 'IMAGEJCV'],
        					['timestamp', 'STARTTIMESTAMP']
        				 ]})
 
/// or shorter, as a source operator:
video = BASLERCAMERA({source='Video', options=[['serialnumber', '21448378']]})
 
output = UDO({class='ShowImageJCV', init='0,Video'}, video)