Coder Social home page Coder Social logo

jkbrzt / geotagger Goto Github PK

View Code? Open in Web Editor NEW
37.0 5.0 9.0 289 KB

๐Ÿ“ธ ๐Ÿ—บ Geotag your photos from GPS-less cameras with your phone's location history data

Home Page: https://twitter.com/jakubroztocil

License: MIT License

Python 100.00%
geolocation photography movesapp moves gpx photos location exif jakubroztocil

geotagger's Introduction

GeoTagger

Geotag your photos from GPS-less cameras with your phone's location history data.

GeoTagger

Is it for me?

  • Do you take photos with a camera without a GPS tracking feature?
  • Do you have https://moves-app.com/ installed on your phone?
  • Do you want to have your photos geotagged?

โ€ฆif your answer is 3x yes, then this tool is for you.

How does it work?

  • You already walk around with your location-aware phone and Moves records your location.
  • You snap photos with your GPS-less camera.
  • GeoTagger uses the creation timestamps from photos to find your location at the time of taking them in your Moves log.
  • GeoTagger is able to retrospectively add GEO tags to even old photos, as long as your location for the period is logged with Moves.

How is it implemented?

When you ask GeoTagger to tag your photos, this process takes places:

  1. Unique creation dates are extracted from the photo files.
  2. Your Moves history for those days is fetched from the Moves API.
  3. A GPX file is generated from the data.
  4. exiftool -geotag is used behind to scene to apply that location log to your photos.

Status

Beta quality.

Installation

  1. Install exiftool, for example, with: $ brew install exiftool
  2. Install geotagger from PyPi with: $ pip install geotagger

Usage

See $ geotagger --help and $ geotagger sub-command --help.

Moves authentication

  1. Create a new app under your Moves account: https://dev.moves-app.com/apps/new
  2. Specify http://127.0.0.1:7777/redirect as Redirect URI.
  3. Create ~/.geotagger.json with credentials for your app: {"MOVES_ID": "<CLIENT_ID>", "MOVES_SECRET": "<CLIENT_SECRET>"}
  4. Run geotagger auth and follow the instruction to authenticate the app.

Geotagging

Geotag all images in a folder:

$ geotagger tag ./photos

You can also just generate a GPX log for the dates without applying it:

$ geotagger gpx ./photos > log.gpx

The tag sub-command also optionally accepts a path to a GPX log file:

$ geotagger tag ./photos log.gpx

TODO

Changelog

0.0.3 (2017-09-09)

  • Fixed missing configuration: MOVES__ID #1

Contact

Jakub Roztocil

Contribute

Licence

MIT. See LICENCE.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.