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 src/pyoptflow/data/tests/box box*.bmp
Office: all time steps:
python HornSchunck.py src/pyoptflow/data/tests/office office*.bmp
or just the first 2 time steps:
python HornSchunck.py src/pyoptflow/data/tests/office office.[0-2].bmp
Rubic:
python HornSchunck.py src/pyoptflow/data/tests/rubic rubic*.bmp
Sphere
python HornSchunck.py src/pyoptflow/data/tests/sphere sphere*.bmp
Compare: Matlab Computer Vision toolbox: in matlab, similar method in Octave and a comparison plot using Matlab Computer Vision toolbox.
Reference:Inspiration
Metadata
Release files for pyoptflow 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyoptflow-1.5.0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyoptflow-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.6 kB
Release files / pyoptflow-1.5.0.tar.gz
| Download URL | pyoptflow-1.5.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
16ee5daa230c03820372a1d156626fcaf27897592127c9e7cb81c49fa0b0cd1e
|
|
BLAKE2b-256 checksum How to use checksums |
44373949516fb83e80143abf495e1a20667bb91422586a93c3941a5ed583e5f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency logRelease files / pyoptflow-1.5.0-py3-none-any.whl
| Download URL | pyoptflow-1.5.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f58a99fbb90c3228d1673d66afb6bd9f6d75b314284d2f92c2145213f355359
|
|
BLAKE2b-256 checksum How to use checksums |
da75e4de2b9105713931b1b3386372a13ce24ef08d2513e91204fee0ccf4c16e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 11, 2026.
Transparency log