Intel Realsense d435i RS OPTION's custom values are not maintained after power loss
Hi!
I am creating an application in Python3 and OpenCV using Intel RealSense d435i and I am configuring the controls of the camera by setting the rs.options from pyrealsense2 library that my application needs. That's fine, but when I disconnect and reconnect the camera to USB port, and if I don't set the values again with my code, the control option values from camera are back to default.
Aren't the values stored in a EEPROM? Is there any reason why this control option values are back to default when camera is disconnected? Is there anyway to set those values only once? Because I notice that one time camera returned to default values unexpectedly after running the camera for 2-3 days.
maybe I am missing any of these point, please can you clarify?
Thanks!
-
Hi Fpelegri. Unplugging the camera from the USB port will close any currently open pipeline. When the camera is re-inserted into the USB port, the default configuration of the particular camera model being used will be applied. This is the expected behaviour and enables recovery from problems that may have occurred during the previous streaming session. Custom option settings applied by a script cannot be stored in the camera hardware.
A way to restore settings automatically upon USB reconnection may be to use the RealSense SDK instruction set_devices_changed_callback to listen for USB disconnection and reconnection events and trigger the re-application of your settings upon detection of a reconnection event.. An example of Python code for this can be found at the link below.
https://github.com/IntelRealSense/librealsense/issues/4212#issuecomment-586262375
Please sign in to leave a comment.
Comments
2 comments