-
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 reliably set the auto-exposure #4490
Comments
Information about actual value of exposure is provided within frame metadata. To ensure it is available, you need to run a powershell script from scripts directory or install the official UWP driver. |
Thank you for the reply @dorodnic ! I'll take a look at that :) To be a little bit more specific, we are using the camera in an "independent" system with no display of any kind. In any cases, I'll try what you suggested. |
@AntoineWefit , once you have the metadata setup then you can monitor the actual exposure data till the point that it converges (i.e. the exposure changes in the last N frames is below some TBD threshold). This flow will automatically adjust for the actual light condition and the stream fps. Note that the actual exposure attribute is available for Depth and IR streams only. |
Ah yes ! This is what I'm looking for :)
Does this mean I can't do the same thing for the RGB stream ? I'll have to find a workaround then, because the auto-exposure for color/texture works well on daylight conditions, but not so great when there is shadows. Plus I can't reliably set a fixed value as the picture will sometimes be overexposed, or worse, trigger a USB overflow... |
Unfortunately you're correct - the D400 RGB sensor does not emit the actual exposure value when AE mode is activated. #2549 |
Alright, thank you for your answer and the link ! I'll try to write some code, at least for the Depth & IR streams, to monitor the exposure. I'll let this issue open a few days in case I can't get it to work. Might try that, I'll keep you updated. |
Turns out I mostly need to control the auto-exposure for the texture (so the RGB sensor)... |
I would like to know how to correctly set the auto-exposure
My application require the use of the auto-exposure via a C++ file.
My problem is that the data are captured too quickly and thus the auto-exposure doesn't have the chance to settle :(
We currently use this line of code to wait a bit :
for (auto i = 0; i < 30; ++i) pipe.wait_for_frames();
But it's not really reliable and I would like to know if there is another/better way to do that.
[EDIT] : Ubuntu 16.04 added to "Systems"
The text was updated successfully, but these errors were encountered: