0
$\begingroup$

I am doing a project where I have to know distance a particular object is from camera. In the photo I only know one of the object's height, but I don't know how far away that object is and I don't know how tall are other objects. Is it possible to write a code or do some geometry to know other objects distances from camera using only the height of one object? For example I have an image where 5 meters away there is a box which is 1 meter high, I wanna know the distance to human who is 12 meters away, or to know a distance to a dog who is 7 meters away. Maybe you guys know any datasets or models which deal with the same problem as I am facing. Any help will be appreciated.

$\endgroup$
  • $\begingroup$ No, it is impossible. Assume you see a circle, than in the image has 50 pixels of diameter (and a focal angle of 45º). The circle can have a real size of 1 meter and be at 1 meter distance, or 2 meters and be at 2 meters distance, ... . Impossible to know the real values. $\endgroup$ – pasaba por aqui Oct 14 at 19:03
0
$\begingroup$

Monocular depth estimation basically does this and it implicitly brings in knowledge about object size. But you need to have prior information.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.