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

Camera parameters of retrieved camera item

#2
I think I solved it, by repeating theCam2D_Addcommand even when the camera already exists, and adding the camera item as a third variable:
Code:
cam_id = RDK.Item('Camera 1',robolink.ITEM_TYPE_CAMERA)
if not cam_id.Valid():
cam_id = RDK.Cam2D_Add(camFrame, 'FOCAL_LENGTH=6 FOV=32 FAR_LENGTH=5000 SIZE=1080x810')
else:
cam_id = RDK.Cam2D_Add(camFrame, 'FOCAL_LENGTH=6 FOV=32 FAR_LENGTH=5000 SIZE=1080x810',cam_id)

RDK.Cam2D_Snapshot (RDK.getParam(帕特H_OPENSTATION') + '/snapshot.png', cam_id)
Still, it seems strange to me to have to specify camera parameters more than once.


Messages In This Thread
RE: Camera parameters of retrieved camera item - byMaarten- 12-15-2022, 12:32 PM



Users browsing this thread:
1 Guest(s)