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

How to reduce the effect of the sunlight and object color? [Depth Camera, L515) #2970

Closed
kevinDrawn opened this issue Jan 10, 2024 · 11 comments
Labels

Comments

@kevinDrawn
Copy link

Hello @MartyG-RealSense,

I am encountering two problems with the depth camera (model: L515) that I'm using for a mobile manipulator. It is utilized both in the morning and at night, (indoor of the hospital). The depth values of the same relative place differ depending on the sunlight passing through the window, which changes with the time of day.

The second issue involves a black-colored sofa and refrigerator. When I view these objects through the depth map, they are not well recognized, especially in the black areas.

How can I improve the precision quality? Could you recommend a filter, or should I consider changing the camera model?

Thank you.

@MartyG-RealSense
Copy link
Collaborator

Hi @kevinDrawn The L515 camera model is sensitive to infrared light sources such as sunlight as it can interfere with the camera. The RealSense 400 Series camera models are better suited to dealing with sunlight and a range of different day / night lighting conditions. The D435f and D455f models are equipped with a light-blocking filter that can enhance depth quality.

As your L515 needs to be used in variable light conditions, setting it to use the Short Range camera configuration preset instead of the default 'Max Range' preset may provide better results.

In regard to difficulty in reading black objects, it is a general physics principle (not specific to RealSense) that dark gray and black colors absorb light, making it difficult for depth cameras to obtain detail from them. Projecting a strong light onto such surfaces can help to bring out depth detail from them if it is required, like in the L515 case at IntelRealSense/librealsense#6757 where a light-source is cast onto a black leather office chair.

@kevinDrawn
Copy link
Author

Thank you for your rapid response.

I have another question.

If I shine a strong light on the black surface, could this light affect the quality of the depth measurement, similar to the issue I mentioned with sunlight?

Hmm... It may not be affected because the power light is not infrared light, right?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 10, 2024

A strong light source on a black surface should be less likely to result in a reflective glare that blinds the camera than a lighter surface color such as white.

@kevinDrawn
Copy link
Author

I totally understand.

Lastly, where can i change the configuration of the variable light conditions?

Thank you a lot!

@MartyG-RealSense
Copy link
Collaborator

In the RealSense Viewer tool, you can select Short Range from the drop-down menu beside the Preset option near the top of the Viewer's options side-panel.

If you have a program script then IntelRealSense/librealsense#11053 (comment) has Python code for setting the Short Range preset.

IntelRealSense/librealsense#9071 (comment) has C++ code for setting it.

@kevinDrawn
Copy link
Author

Thank you so much!

In IntelRealSense/librealsense#6757, it is recommended to use the D435 camera, which has IR recognition. So, can the D435 model provide more stable precision on black or gray surfaces than L515?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 10, 2024

Difficulty in reading gray / black surfaces is a general physics problem rather than a RealSense-specific one. However, using a 400 Series camera such as D435 may provide an advantage in regard to its built-in infrared projector component, which can project a pattern of IR dots onto a surface (which are invisible to the human eye) to aid the camera's depth analysis.

image

Most RealSense 400 Series camera models except D405 are equipped with a projector. This includes D415, D435, D435i, D435f, D435if, D455, D455f, D456 and D457.

@kevinDrawn
Copy link
Author

Thank you!! I'll try it later.

@MartyG-RealSense
Copy link
Collaborator

Hi @kevinDrawn Do you have an update about this case that you can provide, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Hi @kevinDrawn Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

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

No branches or pull requests

2 participants