12-15-2022, 12:40 PM
Hi Maarten,
To reuse a camera that was closed, you need to open the preview window manually.
You do not need to call Cam2D_Add again.
To reuse a camera that was closed, you need to open the preview window manually.
You do not need to call Cam2D_Add again.
Code:
#----------------------------------
# Get the camera item
cam_item = RDK.Item(CAM_NAME, robolink.ITEM_TYPE_CAMERA)
if not cam_item.Valid():
cam_item = RDK.Cam2D_Add(RDK.AddFrame(CAM_NAME + ' Frame'), CAM_PARAMS)
cam_item.setName(CAM_NAME)
cam_item.setParam('Open', 1)
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting our2022世界杯32强赛程表时间 .
Find useful information about RoboDK by visiting our2022世界杯32强赛程表时间 .