-
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
D405: Poor Depth Alignment #11329
Comments
Hi @vonHartz You should only need to comment out exit(0) rather than the whole RGB sensor checking section of lines 28-35 of align_depth2color.py in order to use that script with the D405 camera model, as described at #10445 (comment) Please also try restoring clipping_distance to its default value of '1' in the script instead of 0.5 to see whether the results improve. |
Thanks for the quick reply, Marty. Line 28-34 do nothing else, so uncommenting them does not change anything. Instead, it seems to be a more fundamental issue of the stereo-depth perception breaking down towards the edges of the image - especially for close objects. |
How close is the camera to the objects? The minimum depth sensing distance of the D405 is 7 cm. When the camera gets closer to objects than the minimum distance then below that minimum, the depth detail will start to break up as the camera moves progressively closer to the objects. The minimum distance of D405 can be reduced to 4 cm to enable the camera to get closer to objects by using the Disparity Shift option, demonstrated at #10963 (comment) |
The objects are ~30cm away. I tried to play with the disparity shift, but it was already at zero and increasing it only made the results worse. I also tried the spatial filter, as per https://github.com/IntelRealSense/librealsense/blob/jupyter/notebooks/depth_filters.ipynb , but with no difference. Should it be used before or after aligning? |
It is recommended by Intel that post-processing filters are applied before alignment in order to help to avoid distortion effects such as aliasing (jagged lines). There are a few rare cases though where a program works much better if alignment is performed before post-processing. Is there any improvement if you align color to depth instead of depth to color by changing |
Nope, changing the align does not help. Though, I found a solution The alignment gets much better, if a resolution of 640x360 is used instead of 640x480. How would I go about applying the filter before alignment?
|
You may be able to exclude the spatial filter, as it typically has a long processing time in exchange for a benefit that is not very noticable. |
Hi @vonHartz Do you have an update about this case that you can provide, please? Thanks! |
Sure. |
You are very welcome, @vonHartz As a closing note, I would add the recommendation to check that that the depth scale value that is printed by |
Issue Description
It seems that for the D405, depth and RGB are poorly aligned.
For a quick reproduction, consider the following code (slightly modified from align-depth2color.py):
Here's an example result:
Is there any way to mitigate this issue?
The text was updated successfully, but these errors were encountered: