A python script to de-shake timelapse (or video) based on scikit-image
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.
Authors.md
LICENSE
README.md
correction.jpg
deshake.py

README.md

deshake

A python script to de-shake timelapse (or video) based on scikit-image.

Story

The story of this little program starts somewhere in the Swiss mountains. We were shooting a timelapse video with a tele-lens on a very windy weather. The result video was completely shaky.

We decided to try to fix it by using the scikit-image library which offers a precise translation detection method between two images. Read More

We were quite impressed by the end result (click to view in Vimeo):

Video

Usage

The script depends on scikit-image and joblib. Make sure those two libraries are available in your python environment.

./deshake.py INPUT_DIR [OUTPUT_DIR]

Usage if fairly simple, you just need to provide one input directory with all your images. The second argument is optional (by default output is used as an output directory)

For instance, using our test example (the images have been released under a CC-by license):

wget http://pmoret.ch/alpes.tgz
tar xzvf alpes.tgz
./deshake.py alpes/ output/