-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to restore the options to default values? #10163
Comments
Hi @ZhongQingliang You could set the defaults for the 400 Series cameras manually for specific options that you have changed. If you launch the RealSense Viewer program and examine the settings of the options without altering them, they are typically the default values of that camera model. For example, the RGB defaults are 156 for exposure and 64 for gain. Alternatively, you could try performing a reset of the camera using the hardware_reset() instruction. A simple example Python code snippet is shown below.
#8393 has an example of Python code that might be more suited to your application, where the reset is placed within a function that is called, so that you can activate the reset precisely when you need to by calling the function name. |
Hi @ZhongQingliang , Like @MartyG-RealSense said, If you want to set to default during runtime this should work:
|
Hi @ZhongQingliang Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Issue Description
How can I restore the options to default values via pyrealsense API after I change some of them such as:
color_sensor.set_option(rs.option.exposure, 1000)
color_sensor.set_option(rs.option.gain, 50)
......
The text was updated successfully, but these errors were encountered: