GPS offset script, where to start?

Started by fpelletier, November 08, 2021, 04:00:37 PM

Previous topic - Next topic

fpelletier

Hi,

Here is the situation I have. I have 5 cameras, being triggered at the exact same time. 1 of them outputs a trigger signal as an event to an RTK GPS rover. Camera position is fixed vs the GPS antenna. Each camera has an offset from the GPS antenna that is known in X, Y, Z.

I picture having one script per camera. So let's say I run script "Camera1", it would look at the GPS coordinates, apply an offset in XYZ, write the new coordinates to the image and repeat for all images in folder. I would also like to write a pitch and roll that is the same for all photos from Camera 1 (say 90 degree pitch, 20 degree roll).

Is this something that would be doable? I would figure what the angular offset is, of course, since the exif has lat and long.

Thanks!


Phil Harvey

You must of course also know the orientation of the rover with respect to the GPS coordinate system.

If so, your script is quite do-able.  The only snag from a metadata point of view is figuring out where to store the pitch and roll metadata because these aren't really supported by EXIF.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).