How to Geotag images using Dataflash logs

Hi, I have been trying to geotag images using the data flash logs downloaded from the APM, but I have not been able to get the correct locations to be tagged in the pictures. I suspect that I need to change the Log Offsets line? but I do not know the values. Can anyone tell me how this should be done? Thanks!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

      • I have previously succeeded in using such a setup very effectively on a MicroPilot system where the autopilot was triggering the camera via a servo pressing the shutter button. The camera never failed to trigger. Aerial imagery should always be shot with the focus set to infinity, which eliminates the extra delay incurred in autofocus mode. There may still be a slight delay, but most modern aerial image mosaicking solutions (e.g. Pix4D, DroneMapper, Agisoft) are able cope with that and correct for it in the process of stitching the images. Then again, if you're 100% DIY or not shooting in an overlapping mosaic pattern, I can see how that might be problematic. *But*, then again, GPS receivers have an error of several meters to begin with, so at the end of the day it's impossible to avoid a certain degree of error even when using the time offset approach. As you said: there's no perfect way.

        http://diydrones.com/forum/topics/apm-mission-planner-geotagging-to...

        http://ardupilot.com/forum/viewtopic.php?f=12&t=6629

  • Hi Jaime,

    I have a few questions about your question.

    1.) Is this basically an alternative to using a camera with a built in GPS? 

    2.) Do you know whether this is a more accurate method for photogrammetry? 

    3.)  After finding the log offsets how do you assign them to a JPEG?

    • MR60

      @Mountains:

      1. Yes it is

      2. Yes it is more precise than a builtin GPS

      3. If you use the georef tool in mission planner it will automatically add the GPS coordinates in your pictures (in the exif part).

      • Developer

        +1,

        Just adding to #3, the georef tool uses the time the picture was taken at and the time for each point in the log file to match the picture to the coordinates. You have to change the estimated offset time to match the offset time of the GPS time vs the Camera time in order to get a correct geotag. If your camera has GPS you can set the camera clock to the GPS time and this will reduce the error in this process.

        Jaime

        • MR60

          What I like to do also is to take a picture of my GPS showing the GPS UTC time. Then I know the precise offset by comparing the photographed time of the GPS with the time in the exif of the picture (exif viewers are available free online).

          • Jaime,

            Is it easy to detect errors when your camera time is not perfectly synced with GPS and APM time?

            Trying to learn as much as possible.  Thanks for your responses.

            Jason

            • I think you can detect large errors easily, once the geotagging is done there is a KML file generated, you can open that in google earth and when you put your mouse over one of the pictures, you can see if it matches the location. But for small errors, I am not sure how you can detect an error. Maybe some one else has an idea.

  • When I did this once for test purpose I saw in the manual a way of getting a log and testing to get the correct offset params.

  • MR60

    Hi,

    Starting too to georef my pictures. I have the same question as yours. How did you find out the right Log offsets? Do you know their meaning?

    • The log offsets shown tell Mission Planner the position of each item in the log file. So the time is the second item, latitude the 6th item and so on. 

      Currently on the new version of mission planner I had not had to modify these anymore. The default work, this problem was fixed in later versions than the one mentioned above. 

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13, 2022
More…