How to measure height, width and distance of object using camera?

anddev picture anddev · Jan 2, 2012 · Viewed 117.8k times · Source

I referred lot many links but still I am not able to get any point from that I can start my development. I want to measure my image height, width and distance using camera. I found this app . I want to make this type of application not exactly same but quite same but for my requirement I want to measure my image height, width and distance using camera.

Can anyone give me/suggest me the right way or any example so that I can get more idea about this requirement.

I tried this :

http://android-er.blogspot.in/2012/04/gets-distances-from-camera-to-focus.html

Answer

drulabs picture drulabs · Jan 28, 2012

I think I know what you are asking for. Here is what you can do.

first get the height of the person say h meters.

sample image

if you can calculate the height of the camera from ground (using height if the person i.e. h) and get angles A and B using gyroscope or something from android then you can calculate the height of the object using the above formula.

Isn't this what you were looking for???

let me know if you need any explanation.