Skip to main content

Optical Flow: Horn-Schunck

image Actions Status PyPI Download stats

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)

Source distribution for pyoptflow 1.5.0
File Size Uploaded
pyoptflow-1.5.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyoptflow 1.5.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.4.0

1 release file

1.3.1

1 release file

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page