Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

相机的参数来进行检索a item

#3
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.


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强赛程表时间 .


Messages In This Thread
相机的参数来进行检索a item - byMaarten- 12-15-2022, 11:27 AM
RE: Camera parameters of retrieved camera item - bySam- 12-15-2022, 12:40 PM



Users browsing this thread:
1 Guest(s)