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

Intermittent Depth Data Issue with D457 Cameras #13798

Open
sinuku opened this issue Feb 28, 2025 · 4 comments
Open

Intermittent Depth Data Issue with D457 Cameras #13798

sinuku opened this issue Feb 28, 2025 · 4 comments

Comments

@sinuku
Copy link

sinuku commented Feb 28, 2025

Hello,

I am currently using two D457 cameras to capture color and depth data simultaneously over USB, not GMSL.

While developing with the librealsense SDK, I noticed an intermittent issue where depth data is not received properly. Occasionally, the depth stream stops, and waving a hand in front of the camera seems to resolve the issue. This problem also occurs in RealSense Viewer and happens sporadically.

Since I am unable to attach a video, I have provided a link to the footage below.
https://youtu.be/lRLZ3exhQYM

I am using RealSense Viewer v2.56.2 and librealsense SDK v2.56.3.

The camera settings are as follows, and both cameras use the same configuration:
RGB: 848x480
Depth: 848x480
FPS: 30

Could you please investigate this issue?

Thank you.

@sinuku
Copy link
Author

sinuku commented Feb 28, 2025

Since the issue is intermittent and requires further testing, it appears that setting both the RGB and Depth resolutions to 1280x720 prevents the problem from occurring so far.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 28, 2025

Hi @sinuku As the depth stream recovers if a hand is placed in front of it, it is possible that something has gone wrong with the exposure. If the camera is covered by a hand and auto-exposure is enabled then this blocking of the scene that the camera is observing allows the auto-exposure to automatically correct the image.

Immediately before the depth image breaks up, there is a white flash on the infrared image of that camera (shown in the picture below). This could be further evidence that some kind of disruptive exposure-related event has occurred.

It is not clear why setting the resolution to 1280x720 instead of 848x480 seems to prevent it from occurring.

Image

@sinuku
Copy link
Author

sinuku commented Feb 28, 2025

Hi @sinuku As the depth stream recovers if a hand is placed in front of it, it is possible that something has gone wrong with the exposure. If the camera is covered by a hand and auto-exposure is enabled then this blocking of the scene that the camera is observing allows the auto-exposure to automatically correct the image.

Immediately before the depth image breaks up, there is a white flash on the infrared image of that camera (shown in the picture below). This could be further evidence that some kind of disruptive exposure-related event has occurred.

It is not clear why setting the resolution to 1280x720 instead of 848x480 seems to prevent it from occurring.

Image

Thank you for your response.

After continuing development with 1280x720, the issue started appearing after changing the resolution to 848x480.

It occurs approximately once every 4 to 5 times when starting the program (starting the pipeline).
Is there no specific solution for this issue? Has any other user experienced a similar problem before?
Is there a way to automatically enable the auto-exposure function when starting the pipeline?

@MartyG-RealSense
Copy link
Collaborator

If you want to ensure that auto-exposure is enabled then you can do so with program code.

C++ - #3141 (comment)

Set RS2_OPTION_ENABLE_AUTO_EXPOSURE to '1' to enable auto-exposure and '0' to disable it.

Python - #3558

Set RS.OPTION_ENABLE_AUTO_EXPOSURE to '1' to enable auto-exposure and '0' to disable it.


You could try disabling auto-exposure in the Viewer's options side-panel to confirm whether or not it is being caused by the exposure changing due to something in the room. If the camera will be used in a location with a constant level of artificial lighting like this room then you may not need auto-exposure to be enabled anyway.

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

No branches or pull requests

2 participants