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 extract depth value in meters from the depth map? #178

Open
Morland424 opened this issue Oct 7, 2024 · 5 comments
Open

How to extract depth value in meters from the depth map? #178

Morland424 opened this issue Oct 7, 2024 · 5 comments

Comments

@Morland424
Copy link

I have generated this depth map from the run.py, but I don't know how to extract exact depth value in meters from it, like it's just a coloured image. How so I get the depth in meters from this depth map?
image

@LiheYoung
Copy link
Contributor

This line outputs the depth values in meter. You can add a --save-numpy argument when launching the script to save the depth map in meters.

@Morland424
Copy link
Author

This line outputs the depth values in meter. You can add a --save-numpy argument when launching the script to save the depth map in meters.

Thank you Young! I have found a way to visualise the depths files through your suggestion!

@wuRDmemory
Copy link

do you try to project the depth map to pointcloud? I use depth_to_cloud.py to get pointcloud, the result is wired... but if I use the output from network as disparity, everything seems okay : |

@guxu313
Copy link

guxu313 commented Oct 30, 2024

Same question, can I specify an area/object to get the depth value?

@wuRDmemory
Copy link

I see the output of infer_image, it truely show the output is disparity.

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

No branches or pull requests

4 participants