Meet eBee. An advanced fixed wing drone that works with FarmLens.
  • Sign In
  • Sign Up
AgribotixAgribotixAgribotixAgribotix
  • REGION
    • USA / Canada
    • Latin America
    • Brazil
    • Other
  • DRONES
    • Agricultural Drones
    • Agrion
    • eBee SQ
    • NDVI and RGB Cameras
  • Data Services
    • Farmlens
    • Field Health Report
    • Variable Application Report
    • Digital Scouting Report
  • BLOG
  • About
    • About
    • News
    • Events
    • Agribotix Labs
    • Media Kit
    • Agribotix Team
    • Case Studies
    • ROI Calculator
  • Store
  • SUPPORT
    • FAQ
    • Process Overview
    • Surveying
    • Uploading
    • Processing
    • Applications
    • TRAINING VIDEOS
  • CONNECT
    • Sign In / Register
    • Contact Us
    • Careers

Geotagging JPEG files

globe

Most photo mosaic generation software requires that the photos be geotagged as a prerequisite. That is, the GPS latitude/longitude coordinates must be incorporated into the EXIF metadata. Many cameras have a built-in GPS but it is generally accepted that this isn’t adequate because (a) the GPS patch antenna is facing sideways instead of up and (b) the camera is moving at about 10 m/s and the GPS units built into cameras are built for walking-around speeds.

A better option is to use the GPS data from the flight log of the APM flight controller. The idea is to read the time stamp from the EXIF data of the photo and match it to the right time stamp of from the flight log. Then take the GPS lat/lon from that time and insert it into the EXIF metadata. There may be some interpolation involved, but you get the idea. There is a geo-tagging utility built in to the Mission Planner ground control station software but I found the utility to be pretty buggy. And since there are no error messages, when it wouldn’t work I was dead in the water without any clue on how to fix it.

Fortunately, I found a reliable alternative. The exiftool software can do exactly what we need (I reported on exiftool previously as a way to recover the time stamp after the photos went through an NDVI conversion). All that exiftool needs is a file with time-stamped GPS data. It supports a bunch of file types, but KML files are the easiest to generate from the flight log.

One issue is that the flight controller clock and the camera clock are rarely exactly synchronized. ExifTool has an option called geosync to take care of this (see example below for syntax). The easiest way to find the offset is to take a photo of the Mission Planner clock with the camera.

Here are the few, simple, steps:

1. Using the Mission Planner, generate a “KML” file from the flight log (“Telemetry Logs” tab >> Tlog>KML button). Note that Mission Planner is being almost constantly updated. This was the sequence in late 2013 but it may shift.

2. Mission Planner actually generates a KMZ file, which is a zipped KML file. To make the shift back to KML, change the .kmz extension to .zip. Unzip it using a regular ZIP utility and the .kml file will come spilling out.

3. Run exiftool with this syntax (here’s a link to the full description of the geotagging capabilities):
exiftool –geotag flight_log.kml geosync=+5 photo_directory
In this example, the camera clock is 5 seconds behind the flight controller. Use a negative number if it goes the other way. Note that this sign convention is the opposite of what is used by the geotagging feature in the Mission Planner.

Once I figured out all the upfront steps, this process worked flawlessly. Note that if the bugs in the Mission Planner utility are resolved that route would be a simpler. But for now, exiftool provides a reliable fallback option.

Recent Posts

  • Drones As a Tool to Enhance Precision Ag
  • Agribotix One of 70 Drone Companies to Watch in 2017 (UAV Coach)
  • Agribotix™ partners with senseFly to offer agricultural clients a professional-grade, end-to-end drone & data processing solution
  • Agribotix Builds on Australian Base (Article Link)
  • AGRIBOTIX™ FARMLENS™ DRIVES VALUE FOR JOHN DEERE DEALERS AROUND THE WORLD

Recent Comments

  • Jerry on How to Survey Closed-Canopy Corn
  • Daryl Wilding-McBride on 3DR Solo as an Ag Survey Tool
  • Jose Eduardo .Fuentes on Agribotix’s GoPro Adventure
  • cristian escudero on Multi-Flight Surveys
  • John DeLeon on The How and Why of Drone Calibration

Archives

  • January 2017
  • December 2016
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • November 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • May 2015
  • April 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • November 2014
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • April 2014
  • March 2014
  • February 2014
  • January 2014
  • December 2013
  • November 2013
  • October 2013

Categories

  • Blog
  • Business
  • Events
  • FarmLens
  • field operations
  • How To
  • Labs
  • News
  • Press Coverage
  • Press Release
  • Uncategorized

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Copyright (c) 2013-2017 Agribotix LLC
  • Sign In
  • Sign Up
  • Agricultural Drones
  • FarmLens Analytics
  • About Agribotix
  • FAQ
  • Support
  • Contact Us
Agribotix