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

L515 camera significant misalignment on the left side #12955

Closed
DongLZY opened this issue May 23, 2024 · 14 comments
Closed

L515 camera significant misalignment on the left side #12955

DongLZY opened this issue May 23, 2024 · 14 comments

Comments

@DongLZY
Copy link

DongLZY commented May 23, 2024

When using the Intel RealSense L515 camera model and the pyrealsense2 library in Python to align the depth map with the color map, I have noticed that the right side aligns properly, but there is a significant misalignment on the left side, preventing a complete alignment. This issue has been tested on both Windows 11 and Ubuntu systems, with consistent results.

Required Info Value
Camera Model Intel RealSense L515
Operating System & Version Windows 11 and Ubuntu22.04
Platform PC
SDK Version pyrealsense2 2.54.2.5684
Language Python

@MartyG-RealSense
Copy link
Collaborator

Hi @DongLZY Did you test with the RealSense SDK's align_depth2color.py alignment example program?

https://github.com/IntelRealSense/librealsense/blob/master/wrappers/python/examples/align-depth2color.py

If you did use this script then support for L515 was removed from it when overall support in the SDK for L515 was removed in SDK 2.55.1. There is an older version of the example at #11329 (comment) that still contains L515 support.

@MartyG-RealSense
Copy link
Collaborator

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

@DongLZY
Copy link
Author

DongLZY commented May 30, 2024

Hi, thank you for your reply.
I found that I set the short range mode in the script,
''' preset = rs.l500_visual_preset.short_range
depth_sensor.set_option(rs.option.visual_preset, int(preset))
'''
and in this mode, the depth map cannot be fully aligned with the color map. Is there a solution to this issue? Thank you.

@MartyG-RealSense
Copy link
Collaborator

I am not aware of visual presets usually having an effect on depth-color alignment. Does alignment occur successfully if you instead use rs.l500_visual_preset.low_ambient_light

@DongLZY
Copy link
Author

DongLZY commented May 31, 2024

Setting the low_ambient_light does not affect the alignment, but it is not fully aligned in the short range mode. Is it necessary to perform some calibration operations in this mode?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented May 31, 2024

It should not be necessary to perform an calibration operation when using presets.

The main difference between Short Range and Low Ambient Light is that Short Range reduces the value of the Laser Power setting slightly from its maximum of 100 to '93', whilst Low Ambient Light maximizes the laser power at 100.

You could try setting the Low Ambient Light preset and then using the Python code below to set the Laser Power to '93' like the Short Range preset does in order to see whether it affects alignment.

depth_sensor.set_option(rs.option.laser_power, 93)

@DongLZY
Copy link
Author

DongLZY commented Jun 3, 2024

Hello, I have conducted more tests. The alignment still fails towards the left side, while the right side is aligned. Could it be possible that there is a hardware issue?

@MartyG-RealSense
Copy link
Collaborator

If alignment is correct when using the Low Ambient Light preset and only has a problem when using Short Range then that suggests that the camera hardware does not have an issue.

@DongLZY
Copy link
Author

DongLZY commented Jun 3, 2024

I just tested using the Low Ambient Light preset, and the same effect occurred—it was not aligned. when not using the Short Range , the situation remains the same.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jun 3, 2024

Alignment is calculated in the SDK software and not on the camera hardware.

If you installed the librealsense SDK with tools and examples included, are you able to launch the pre-built rs-align example program to see how alignment behaves when generated by that program? Examples are installed to the usr/local/bin folder on Linux and C: > Program Files (exit) > Intel RealSense SDK 2.0 > Tools on Windows (when the full SDK is installed with the Intel.RealSense.SDK-WIN10 installer file).

@DongLZY
Copy link
Author

DongLZY commented Jun 6, 2024

Yes, I tested another L515 camera, and the same issue occurred—the left side was not aligned. I think I need to find other way to solve this problem because it's important for me to obtain the depth of finer targets.

@MartyG-RealSense
Copy link
Collaborator

Some RealSense users take the approach of first aligning with align_to and then aligning a second time using a different method called pc.calculate, like in the Python script for L515 at #8619

@MartyG-RealSense
Copy link
Collaborator

Hi @DongLZY 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
Projects
None yet
Development

No branches or pull requests

2 participants