-
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
Get distance from a saved depth image #10275
Comments
Does |
But doing so gives me |
When I multiply this |
I had saved the depth_image by |
Hi @mnauf If you are not using get_distance then an alternative method of obtaining the real-world distance in meters is to multiply the raw pixel depth value uint16_t by the depth unit scale (which is 0.001 by default on the 400 Series camera models). There is a discussion about this subject at #7264 |
@MartyG-RealSense Thanks. The issue was, my saved depth image values were in uint8, so I dumped them again using uint16, and then everything worked fine. You may close this issue now. |
It's excellent to hear that you achieved a solution, @mnauf - thanks very much for the update! As you suggested, I will close this case. Thanks again! |
Issue Description
How to get distance, given that I have a depth image from D415 saved in my machine. Please note, that I can't do
Depth = depth_frame.get_distance(int(x),int(y))
here, since it is not a Livestream. I know thedepth scale = 0.0010000000474974513
.The text was updated successfully, but these errors were encountered: