Traffic Time Lapse Helper - makes creating time lapses of traffic in Google Maps easy
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
output
screenshots
temp
.gitattributes
.gitignore
ImageHandler.py
WebHandler.py
example.gif
main.py
promptDependency.py
readme.md

readme.md

Traffic Time Lapse Helper

Description

A script that makes creating time lapses of traffic in Google Maps easy.

an example time lapse of Traffic clearing up in Atlanta

Requirements

The script runs on Python 2.7 and requires Selenium for Python and ImageMagick. PhantomJS is highly recommended.

Usage

I used ImageMagick binaries instead of the libraries, and also did not add detection for the binary location, so the path is currently hardcoded into main.py. The URL to screenshot and interval between screenshots are also located at the bottom of main.py.

Once these variables are set, run the script and it will begin placing formatted 900x900 frames in /output. Original frames are kept in /screenshots.

Current Issues

  • Frames are not gathered exactly on an interval, so times gradually shift from :00, :15, to :01, :16, and so on
  • ImageMagick binaries are used instead of libraries
  • ImageMagick path is hardcoded
  • GIF creation is not automated, even though ImageMagick supports it