Advantech ICAM-500 Series Programming Manual page 34

Industrial ai camera
Hide thumbs Also See for ICAM-500 Series:
Table of Contents

Advertisement

get_pipeline_params(**params)
Get properties value in defined pipeline.
# Get width and height of image
params = {'width': 0, 'height': 0}
params = camera.get_pipeline_params(params)
for key in params:
print("key %s, value %d" % (key, params[key]))
Parameters: params: dict{str, str}
Returns:
config_pipeline(**params)
Configure ICAM-500 gstreamer pipeline in defined format.
# Set resolution 640x480 in free run image
params = {'acq_mode':0, 'width':640, 'height':480}
camera.config_pipeline(params)
Parameters: params: dict{str, str}
Returns:
Notes
width and height parameter should in HYPERLINK \l "valid_resolution_list.
Ex. { 'width': 1408, 'height': 1080 }
get_device_name()
Get device name.
Returns:
open(frame_count= -1)
Open ICAM-500 device.
Parameters: frame_count : int, optional
Returns:
ICAM-500 Programming Guide
Dict of pipeline paramters.
dict{str, str}
Set pipeline parameters.
'format': ['YUY2', 'BGRA']. Mono sku only has 'GRAY8'.
'acq_mode': 0 = Continuous, 1 = Software Trigger, 2 = Hard-
ware Trigger
'width': 640
'height': 480
'frame_count': -1 (-1 = continuous, >0 = frame count)
'icam500=frame-rate': 60
'timestamp': [0, 1]. Print timestamp on image.
'pipeline_mode': ['default', 'simple']. default mode output jpeg
image format, simple mode output raw image.
str
Full pipeline string.
str
Device name.
> 0: streaming stop when get frames up to frame_count.
-1: free run streaming.
dict{str, str}
Device name.
28

Advertisement

Table of Contents
loading

Table of Contents