Upload images taken with an action camera with a Mapillay script

This section describes the procedure for uploading a series of images with location information taken with a GPS-equipped action camera to Mapillary using a Python script.

Preparation

Python runtime environment and editor installation

Download and install the execution environment from http://www.python.jp/.

If the editor is a Windows environment, it is recommended to install Sakura Editor. http://sakura-editor.sourceforge.net/download.html

Download "mapillary_tools"

Go to https://github.com/mapillary/mapillary_tools and press the [Clone or Download] button to download all at once.

Unzip the downloaded script to any directory.

Get hash code

Visit the following site and use two hash codes 「Permission Hash」 「Signature Hash」 Make a note of. https://legacy.mapillary.com/map/upload/im

PYTHONPATH setting

Add the following items to PYTHONPATH where Python setting information is described. How to add http://blog1.erp2py.com/2010/10/pythonpath.html

MAPILLARY_USERNAME = "mapillary_my_userID" MAPILLARY_EMAIL = "[email protected]" MAPILLARY_PASSWORD = "fjsei84aoreugj" MAPILLARY_PERMISSION_HASH = "THISISSAMPLEsagoraoignreoanguoaenegoaernhueshgoseru48njfkdogsw48joa34903j03a40jh30a350ajhrigh8rfwnf498gj0aja0h80A4J0AGNODRG7AENROHJAEOR" MAPILLARY_SIGNATURE_HASH = "THISISSAMPLELy/dusnkskn7J3SLSNjfsQ8="

If you don't know where PYTHONPATH is, it may be quicker to write it directly in the script.

Image preparation

Prepare an image with coordinate information embedded as an Exif tag at the time of shooting, such as one taken with Virb.

Images to be handled as a series of sequences are grouped into folders.

Script execution

Start a command prompt Use the cd command to move to the mapillary_tools folder. Type as follows

upload_with_preprocessing.py [image folder]

upload_with_preprocessing.py D:\mapillary\pics\20160826\

After upload

Once the upload is complete, we'll do some finishing work on the Mapillary site.

Recommended Posts

Upload images taken with an action camera with a Mapillay script
[kotlin] Create an app that recognizes photos taken with a camera on android
Display images taken with the Raspberry Pi camera module
Face detection from images taken with Raspberry Pi camera
Write a batch script with Python3.5 ~
Upload and download images with falcon
Create a star system with Blender 2.80 script
Manage logrotate generations with a shell script.
Operate an oscilloscope with a Raspberry Pi
Upload images to Google Drive with Python