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

Depth Map to Metric Depth Values #104

Open
ConorHackett98 opened this issue Feb 20, 2024 · 2 comments
Open

Depth Map to Metric Depth Values #104

ConorHackett98 opened this issue Feb 20, 2024 · 2 comments

Comments

@ConorHackett98
Copy link

ConorHackett98 commented Feb 20, 2024

Hi,

I've recently started using a local version of ZoeDepth where I was able to input an image and get a greyscale depth map back of the image. Where object closer to the camera appear white while objects further away from the camera appear black. I just wanted to ask how I can convert these greyscale pixel values to metric units of depth (meters)?

Is the metric distance represented the by greyscale vales linear or does it have some other relation?

I was also wondering how the UI can convert an image into a 3D model (https://huggingface.co/spaces/shariqfarooq/ZoeDepth). To do this I assume it must find a way to convert the greyscale depth map to metric depth from an image, while also converting the x and y pixels to metric units too. How does it do this?

Thanks in advance for your help.

Kind Regards,
Conor.

@elvistheyo
Copy link

@ConorHackett98 did you find the solution to your issue?

@ConorHackett98
Copy link
Author

Hi elvistheyo,

Unfortunately, I did not find a solution to this issue. I ended up converting the images to 3D modes using: (https://huggingface.co/spaces/shariqfarooq/ZoeDepth). I imported these models into Blender to measure any distances. I roughly estimated distance using the camera specifications and it seemed to approximately line up with what Blender had stated.

Kind Regards,
Conor.

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

2 participants