# Useful python scripts

**URL:** <https://forum.mapillary.com/t/useful-python-scripts/120>\
**Category:** Contributing and equipment\
**Created:** [August 28, 2015, 6:02pm UTC](https://forum.mapillary.com/t/useful-python-scripts/120 "2015-08-28T18:02:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DaCor](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/dacor/32/68295_2.png) [@DaCor](https://forum.mapillary.com/u/DaCor)\
**Post date:** [August 28, 2015, 6:02pm UTC](https://forum.mapillary.com/t/useful-python-scripts/120/1 "2015-08-28T18:02:27Z")

</div>

- Sorting Images Into Sequences

This one by @maxim75 -[group\_photos\_by\_date\_and\_distance.py · GitHub](https://gist.github.com/maxim75/1855640f87678e634ca0)

---

<div class="post-metadata">

**Author:** ![tryl](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/tryl/32/62_2.png) [@tryl](https://forum.mapillary.com/u/tryl)\
**Post date:** [August 29, 2015, 1:06pm UTC](https://forum.mapillary.com/t/useful-python-scripts/120/2 "2015-08-29T13:06:21Z")

</div>

I can reccomend [https://github.com/mapillary/mapillary\_tools/blob/master/python/remove\_duplicates.py](https://github.com/mapillary/mapillary_tools/blob/master/python/remove_duplicates.py) which removes duplicate images, e.g. when stopping for at red light or going very slow.

Also requires [https://github.com/mapillary/mapillary\_tools/blob/master/python/lib\_gps\_exif.py](https://github.com/mapillary/mapillary_tools/blob/master/python/lib_gps_exif.py) and PIL or Pillow, run: pip install Pillow or see [http://pillow.readthedocs.org/](http://pillow.readthedocs.org/) to install the latter.

---

<div class="post-metadata">

**Author:** ![moenk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.mapillary.com/moenk/32/68240_2.png) [@moenk](https://forum.mapillary.com/u/moenk)\
**Post date:** [August 29, 2015, 4:38pm UTC](https://forum.mapillary.com/t/useful-python-scripts/120/3 "2015-08-29T16:38:49Z")

</div>

I’m using a script that I combined from the existing ones to split all pictures from the SD of my Garmin Virb into sequences and upload them without further interaction.  
See here: [https://github.com/moenk/mapillary-tools/blob/master/python/mapillary\_uploader.py](https://github.com/moenk/mapillary-tools/blob/master/python/mapillary_uploader.py)  
Just connect your camera, adjust path and credentials and upload all.
