Skip to main content

Pure Python optical flow: Horn-Schunck

Project description


image image image Maintainability 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.


python -m pip install -e .

optionally, to run self-tests:

python -m pip install -e .[tests]

pytest -v


The program scripts expect directory glob pattern

imageio loads a wide varity of images and video.


python data/box box*.bmp


all time steps:

python data/office office*.bmp

or just the first 2 time steps:

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


python data/rubic rubic*.bmp


python 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.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyoptflow, version 1.3.1
Filename, size File type Python version Upload date Hashes
Filename, size pyoptflow-1.3.1.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page