Possible Duplicate:
How to measure height, width and distance of object using camera?
Is it possible to measure the distance of an object from an android phone using only camera? are there any coding for it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
it should be possible to tell where the camera is focused. You’ll need to know a little bit of information about the camera’s lens, since each phone is different.
You can probably get this data from the EXIF data that is embedded in the jpeg image file. The exif might acutally contain information about the focussing distance, but this likely camera dependent.
Here is a hyperfocal distance and depth of field calculator as an example.
http://www.outsight.com/hyperfocal.php
You should be able to come up with an estimated distance using these. It won’t be 100% accurate.