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

Execute Cam2D_Snapshot without opening a window

#1
Hello,
i want to take a single image, modify it and show it later to the user.

My problem is that as soon as i execute Cam2D_Snapshot a window opens. Is there a way to take a spanshot without opening a window?

Example:

Code:
frame = RDK.AddFrame(CAM_NAME + ' Frame',parentframe)
frame.setPose( pose )
cam_item = RDK.Cam2D_Add(frame, CAM_PARAMS)
cam_item.setParam("Settings","Orthographic")
cam_item.setName(CAM_NAME)

bytes_img = RDK.Cam2D_Snapshot('', cam_item,"") # <----Opens a window i dont want
RDK.Cam2D_Close(self.cam_item)                              # <----Close the window

# do stuff with image

# show image to user


is there a way to not execute "RDK.Cam2D_Close(self.cam_item)"?
  




Users browsing this thread:
1 Guest(s)