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.
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
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.
Visit the following site and use two hash codes 「Permission Hash」 「Signature Hash」 Make a note of. https://legacy.mapillary.com/map/upload/im
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.
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.
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\
Once the upload is complete, we'll do some finishing work on the Mapillary site.
Recommended Posts