Probably this question was asked, but I couldn't find solution to my problem. I have an image with exif GPS location (which is position of the camera) as well as elevation above sea level. How can I calculate (estimate) positions/coordinates of objects present in an image? Is it possible to measure distance from camera to objects photographed with only one point of reference? What parameters beyond exif data are needed to perform such calculation?
N.B. All the below calculations are approximate because the distance is line, but it is actually arc and so on.
First you need the distance between the camera and object
d and also the angle between the line (camera to object) and equator
Then you calculate the length of two arcs (lat, long):
Then you calculate two angles which need to be added to camera coordinates:
This calculation is in degrees and 6371 meters is a radius of Earth (approximated as a sphere),
and then add those angles to current GPS coordinates:
But I will recommend you another way to simply get the coordinates: go to Google maps, enter coordinates (from photo), find the object you want to get location, right click and you will get the coordinates of this object.