-
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
D435 frame rate changes with respect to ambient lighting #5788
Comments
You can enforce a constant FPS speed by leaving auto-exposure enabled but disabling the 'Auto-Exposure Priority' option. |
@MartyG-RealSense , Will try the option and let you know. Just curious, Wont disabling the auto-exposure give constant fps? Also for our requirement, we need the exposure to be manual. |
You could disable auto-exposure and set your own values manually, though it may affect depth performance for the reasons discussed in the link below, |
I tried setting it for depth stream. But it fails.
And with manual exposure, the problem still persists. |
Also I tried for color stream for which I was able to set this value using the same code. But the problem still persists. I used auto exposure and disabled RS2_OPTION_AUTO_EXPOSURE_PRIORITY. |
Generally, RS2_OPTION settings are set to false or true with a 0 or 1, where 0 = false and 1 = true. For example, to disable: sen.set_option(RS2_OPTION_AUTO_EXPOSURE_PRIORITY, 0.f); |
@MartyG-RealSense , I have tried your suggestion. Still the problem persists. |
If you have turned off auto-exposure, did you set a manual exposure value that is appropriate for the FPS speed that you are using, as described in the advice linked to earlier please? |
Yes. I set the value of exposure to 400 (~25fps). |
I wonder if the sudden changes in light conditions caused by the LED might be saturating the IR imager, in the same way that a stream may degrade or freeze if it captures a burst of sunlight (by looking up at the sky or experiencing a bright ray reflected off a surface such as a glass door). |
Is there a way we could handle this? such that we can get consistent fps. |
You could apply a physical IR filter to the camera. This could take the form of a bulky external filter or a micro-thin filter film placed over the IR lens on the front of the camera. Another approach may be to program the camera to reset automatically if an event that degrades performance occurs. Assuming that the LED will be strobing between low and high constantly though, prevention (filtering) is probably better in this particular case, otherwise you might have to reset the camera repeatedly. The subject of physical filtering with cover materials is discussed in detail in the link below. |
@MartyG-RealSense , Thank you for your suggestion. Will try! |
Issue Description
The frame rate of D435 stream (both color & depth) are not constant when the external lighting varies. We have a external strobe LED to illuminate the scene and when the intensity is high, we see that frame rate goes high (6 fps) compared to 3.5 fps when illumination is very low. See the attachment for more details. For our requirement, we need constant fps on both the streams. Any pointers related to this issue would be really helpful.
Thank you in advance!
D435 settings:
Code:
Attachment details:
The text was updated successfully, but these errors were encountered: