Calibrating D415 camera before opening window
Hi,
I have the following try-finally block borrowed from the demo box_dimensioner_multicam (https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/box_dimensioner_multicam/box_dimensioner_multicam_demo.py) in my own personal project. My goal is to have the user calibrate the camera with the printed checkerboard before opening the window. However, I get an error saying that the 'Device or resource is busy'. I know the problem is with the try-finally block, but I don't know why it's causing an issue. I am calling run_demo() in my own file.
-
Hi Edenclaire8 In the box_dimensioner_multicam project, the camera's enabling is handled by the realsense_device_manager.py script at the link below.
So if your run_demo script tries to enable the camera when realsense_device_manager has already enabled it then you would receive a 'busy' error that indicates that the camera is already active. The reverse is also true. If run_demo enables the camera first then realsense_device_manager would get a busy response if it tried to enable the camera when it was already active.
Please sign in to leave a comment.
Comments
1 comment