Skip to content
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

Disable Auto Exposure Priority in code #5290

Closed
FangjinhuaWang opened this issue Nov 21, 2019 · 2 comments
Closed

Disable Auto Exposure Priority in code #5290

FangjinhuaWang opened this issue Nov 21, 2019 · 2 comments

Comments

@FangjinhuaWang
Copy link

FangjinhuaWang commented Nov 21, 2019

Hi. I am working on D435i to synchronize Depth camera and RGB. I know that I should disable Auto Exposure Priority control under RGB Camera. But I do not know how to implement this in code and I do not find any example in the library. Does this look like the following codes:

auto sensor = pipe_profile.get_device().firstrs2::depth_sensor();
sensor.set_option(RS2_OPTION_AUTO_EXPOSURE_PRIORITY, 0);

Thanks a lot!

@dorodnic
Copy link
Contributor

Hi @FangjinhuaWang
Try auto sensor = pipe_profile.get_device().query_sensors()[1];
RS2_OPTION_AUTO_EXPOSURE_PRIORITY is not on the depth sensor, but rather on RGB

@FangjinhuaWang
Copy link
Author

thanks for your quick reply. I will have a try soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants