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

estimating depth with marker #63

Open
tuna5282 opened this issue Jul 4, 2024 · 2 comments
Open

estimating depth with marker #63

tuna5282 opened this issue Jul 4, 2024 · 2 comments

Comments

@tuna5282
Copy link

tuna5282 commented Jul 4, 2024

I am planning to use the model to measure the distance between a fixed camera and an object.
Is there a method to improve the accuracy of depth estimation by using the distance to a marker in a photo, where the distance between the camera and the marker is known, as a parameter?
Thanks.

@lpiccinelli-eth
Copy link
Owner

You can use it as a postprocess step.
You can compute a scale and shift (via e.g. LstSq) based on the error between the predicted depth maps and the actual marker distance for each of the pixels belonging to the marker.

This implies assuming that the relative distances of the predicted depth map are correct and you know which pixel belongs to the marker, ie segment the marker in the image.

@tuna5282
Copy link
Author

Thank you for the feedback. Additionally, in a fixed camera video looking vertically downwards, when the height of the object being increases, the depth value of the background ground also increases. Is there a solution to this? The camera intrinsics have been manually input as fixed values.

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