Resetting Cache, Realsense-Viewer
Hello, we have noticed that sometimes when the camera loses connection, the only way of resetting is running the realsense-viewer. We wonder what kind of camera/usb resets are done during start-up, and if it is possible to replicate using realsense/pyrealsense API?
BR, Liam
-
Hi Liam Neric When the realsense-viewer program is launched whilst a camera is attached, it should attempt to detect the first camera that it can find and display its details and controls automatically in the options side-panel.
An equivalent function in pyrealsense2 for finding the first camera that can be detected would be get_device().first_depth_sensor(). For example:
profile = pipeline.start()
depth_sensor = profile.get_device().first_depth_sensor()Alternatively, you could try resetting the camera automatically when a script is run with the hardware_reset() instruction. The link below has code for doing so in C++ and pyrealsense2.
https://github.com/IntelRealSense/librealsense/issues/3329#issuecomment-475293475
Please sign in to leave a comment.
Comments
1 comment