Skip to content

Automation Scripts

kertase edited this page Aug 22, 2016 · 6 revisions

Mapillary

Mapillary makes a set of tools available to generate their tags and some extra data for a nice display on their services.

I used the following:

•interpolate_direction.py: Interpolates the gps data to get image orientation
•add_mapillary_tag_from_exif.py: adds the Mapillary tags requires username, email and password of mapillary account •upload.py uploads images to mapillary

I made a set of bash scripts that might need some editing depending what is the intent and the prepossessing already done:

•upload.sh uses the other scripts and does the some processing such as image compression necessary for mapillary and uploads the images.
•copygpstime.sh copies gps time data to exif original time data needed bd mapillary script
•AddSphereXMP.sh Adds some basic Photo Sphere XMP Metadata needed for example by the mapillary viewer to display panoramas correctly.

The Script dependencies:

‣By Mapillary scripts:
•python2
•python-exifread
•gpxpy
•PIL
•pyexiv2

‣By my bash scripts:
•exiftool(perl-image-exiftool)
•ImageMagick
•(have to be placed in the python directory of Mapillard_tools)

Freepano

configfromexif.sh will created need data for freepan from exif, insert it in line 428 of js/main.js (so beware and check if it still the right line before using) and apply pyramide.sh for all pictures in the folder Also needs some manual fixing for last and first picture for the arrows…

‣Dependencies:
•Different bash tools
•exiftool

Clone this wiki locally