Insert GPS coordinates into pictures EXIF, based on an external track and interpolating timestamp-Plus a few goodies.
Project description
Coordinates label photos
The problem we are trying to solve: On the one hand, we have a photos with unlabeled GPS data, but only a timestamp. In the other hand, we have a GPS track, with coordinates and timestamp. This situation is originally caused by the fact that pictures are taken underwater but we can position a GPS above the water. Our purpose is to interpolate the GPS position from the track, with the photo timestamp and insert the information in the EXIF photo metadata.
Installation
pip install coordinates-label-photos
Run
To label all images from /path/to/images-directory/*
with the GPX track points from path/to/your.gpx
or LLH (Reach RS 2) format:
coordinates-label-photos --coords=/path/to/your.gpx --images=/path/to/images-directory
Try coordinates-label-photos --help
to see how to save image locations in a separate file, output reports, set accuracy and more.
Other Utils
A few side tools may come handy in some situations
Removing GPS information from pictures
coordinates-clear-photos --images=/path/to/images-directory
Selecting the closest images to a point list
During acquisition, excessive number of pictures can be taken (when strolling outside of the perimeter or moving not fast enough). If we provide a list of positions where the images should have been taken, we can select only the closest images to each of those position.
select-closest-photos \
--coords=/path/to/perfect-positions.csv \
--images=/source/image/directory \
--dest=/selected/image/directory \
--report=/path/to/report.png
Comparing GPX tracks
Compare various coords tracks, from .gpx, .llh, .pos (useful to plot the same track from different GPS):
plot-coords-tracks --gpx="gps A:/path/to/a.gpx" --gpx="gps B:/path/to/b.gpx" --output=/path/to/plot.jpeg
Extracting photos coordinates to a GPX file
From a directory containing images (with GPS locations), create a GPX file:
images-to-gpx --output=/path/to/a.gpx --images=/path/to/images-directory
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for coordinates-label-photos-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7ac08d00abd1456755259bfab692ff0869d8f31ecbf5f5884262be9e728b303 |
|
MD5 | cd5a615cad80b7ba3f44a14f1a2524cd |
|
BLAKE2b-256 | 8a01a822f0964f0de6836df29babaac304a62fff102d89df8ce182649b2e5efe |
Hashes for coordinates_label_photos-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44d3c380fd33953badcc834a0df15f53ab245c8437d49019cadb5803ee72383 |
|
MD5 | 328ceb4602803c732ee9ce2d4e02248a |
|
BLAKE2b-256 | 56d3cd1530d8cd2e9e558c740da5818cd5b10bbfeff849e5cc7656ff8e1577f6 |