Awesome Open Source
Awesome Open Source

image Actions Status

Python versions (PyPI) PyPi Download stats

Optical Flow: Horn-Schunck

Python implementation of optical flow estimation using only the Scipy stack for:

  • Horn Schunck

Lucas-Kanade is also possible in the future, let us know if you're interested in Lucas Kanade.

Install

python -m pip install -e .

optionally, to run self-tests:

python -m pip install -e .[tests]

pytest -v

Examples

The program scripts expect directory glob pattern

imageio loads a wide varity of images and video.

Box

python HornSchunck.py data/box box*.bmp

Office

all time steps:

python HornSchunck.py data/office office*.bmp

or just the first 2 time steps:

python HornSchunck.py data/office office.[0-2].bmp

Rubic

python HornSchunck.py data/rubic rubic*.bmp

Sphere

python HornSchunck.py data/sphere sphere*.bmp

Compare: Matlab Computer Vision toolbox

In Matlab directory, similar method in Octave and a comparison plot using Matlab Computer Vision toolbox.

Reference

Inspiration


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (1,124,836
Optical Flow (212
Geoscience (159
Related Projects