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 get true depth from depth data #11437

Closed
Xue21 opened this issue Feb 14, 2023 · 4 comments
Closed

How to get true depth from depth data #11437

Xue21 opened this issue Feb 14, 2023 · 4 comments
Labels

Comments

@Xue21
Copy link

Xue21 commented Feb 14, 2023

I get the depth data with D435i, it's encoding is16UCI, How can I get the true depth value?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 14, 2023

Hi @Xue21 The real-world distance in meters can be found by multiplying the 16-bit depth value by the Depth Unit Scale of the camera. The depth unit scale value of the D435i is 0.001. So if the 16-bit depth value was 6500 and it was multiplied by 0.001, the real-world depth would be 6 meters.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Feb 19, 2023

If you wish to export color as an image, a Python script at #4934 (comment) exports color as a PNG image file and depth as an array of scaled matrices saved as an .npy file, whilst a script at #2877 (comment) exports both depth and color as PNG images.

@MartyG-RealSense
Copy link
Collaborator

Hi @Xue21 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