location of pointed at object

xav056
xav056 used Ask the Experts™
on
hello
  i would like to know how to determine the location of an object pointed at by the camera on an ios and android,
My thinking is the location of the user/camera is determined by using the location services on the mobile device, utilize the compass and camera in the phone to determine the distance to object(building) in the center of the camera view?
utililize the distance and compass/angles to determine the lat/lon of the pointed at building. Reverse geo-code the coordinate to get the actual address.
Is this feasible? are there any API's provided by Android/IOS that would facilitate this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
2015 Top Expert (Most Article Points)
Commented:
There is no feedback system on the camera to measure the distance. The nearest you can get to it is pointing at the base of the object and using the inclination of the camera with some basic trigonometry to calculate the distance. Distance and not being on level ground will render it useless. Others have discussed it before

http://stackoverflow.com/questions/4588485/is-it-possible-to-measure-distance-to-object-with-camera

http://stackoverflow.com/questions/15949777/how-can-we-measure-distance-between-object-and-android-phone-camera

Here is an app that claims it can do it (not tried it myself)

https://play.google.com/store/apps/details?id=kr.sira.measure&hl=en_GB
Jackie Man IT Manager
Top Expert 2010
Commented:
Have a look of the question below.

https://www.experts-exchange.com/questions/28948473/Height-and-Width-In-Feet-of-Drone-Photo-At-400-Feet.html

After reading the above, you should know that the answer is NO by just relying on a single photo.

You need special software and multiple photos of the same object to do the task.

Author

Commented:
I am not looking at taking a picture to do this, I just want to utilize the camera lens, along with the compass and maybe the DPI?
I already ran across the links above but I still feel something is missing.
Jackie Man IT Manager
Top Expert 2010

Commented:
You need ultrasonic emitter and sensor to calculate the distance in between the camera and the object to determine the distance.

Normally, the distance can be measured using the method in land surveying and two persons are needed to do the task.

As far as I know, no smartphone on market have the above capability.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial