![]() ![]() My original code would only walk pictures backwards and tag picture n-1 from the location on picture n if the location is more precise. As a result, plenty of pictures do not have a tag at all. They do not GPS tag a picture at all if the camera doesn't have a recent tag (they could remember the previous tag and time, and use them if time delta is close enough. Now, other GPS cameras like the Canon HX50V actually don't do as good a job. GPS Retagging backwards and forwards: Panasonic-style vs Canon-style Just to make things interesting, after the step above is done, if you also provided a GPX file from an external GPS (this is optional), my script uses gpsphoto to retag your picture with the nearest point in your GPX but if and only if that location is more precise than the GPS tag that is already in the picture (typically think about pictures taken during an evening dinner or indoors when your GPS was turned off, but your camera is still getting an updated GPS location from time to time).(new 2014) Do a 2nd forward pass to tag pictures n from n-1 if that makes sense (useful for some cameras, see header below).Invariably, your first pictures will get a much beter location by being retagged with the location of the first picture in your series that isn't days or weeks old. Now, this is most useful for fixing the location of your first pictures when they are mistakenly tagged with your home address which is maybe a fix that is days or weeks old. If you think about it, it makes sense, because the camera is always using an out of date GPS fix, the fix for picture N is often too old, but it might actually be closer for picture N-1. Go through all your pictures in a directory, work on them backwards and if the GPS fix from the next picture has a time delta that is smaller than the delta with the last GPS fix that was available when the picture was taken, then the picture location is updated with the location of the next picture's GPS tag.Given these needs, I wrote code that does the following: Next, what if you go on a trip with a GPS, but your GPS isn't on all the time, so you want to use your GPS data to add a GPS location to your picture, but only if the time delta between the external GPS fix and when the picture was taken, is smaller than the GPS fix taken by the camera itself. When I fly at 200kts, that's at least 30km of error, that's huge).īut the biggest and most nagging problem is that when you go somewhere and turn your camera on, your first pictures are geotagged with your home address because invariably the GPS will not have gotten a lock quickly enough during your first pictures and it'll use the last known location which is usually your home. Now, things get interesting if you have a camera with built in GPS like the Panasonic DMC TZ30 (ZS20) among several: due to battery constraints, the GPS is not on all the time, and doesn't update position often enough if you are fast moving (mine updates once every 5mn at best. If you have a camera without GPS and you want to geotag pictures via an external GPS, see my gps geotagging page with GPS Visualizer and gpsPhoto. Fixing and Improving Geotagging on with gps_retag, Exiftool, and gpsPhoto Fixing and Improving Geotagging on with gps_retag, Exiftool, and gpsPhoto Is gps_retag for you? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |