Skip to main content

Pure Python optical flow: Horn-Schunck

Project description

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

Project details


Download files

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

Source Distribution

pyoptflow-1.5.0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyoptflow-1.5.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pyoptflow-1.5.0.tar.gz.

File metadata

  • Download URL: pyoptflow-1.5.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyoptflow-1.5.0.tar.gz
Algorithm Hash digest
SHA256 16ee5daa230c03820372a1d156626fcaf27897592127c9e7cb81c49fa0b0cd1e
MD5 1c457125c81403b8882defbfc9cfdbea
BLAKE2b-256 44373949516fb83e80143abf495e1a20667bb91422586a93c3941a5ed583e5f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyoptflow-1.5.0.tar.gz:

Publisher: publish-python-package.yml on scivision/pyoptflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyoptflow-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: pyoptflow-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyoptflow-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f58a99fbb90c3228d1673d66afb6bd9f6d75b314284d2f92c2145213f355359
MD5 1bce90983f0ac23c000f7303a5a12210
BLAKE2b-256 da75e4de2b9105713931b1b3386372a13ce24ef08d2513e91204fee0ccf4c16e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyoptflow-1.5.0-py3-none-any.whl:

Publisher: publish-python-package.yml on scivision/pyoptflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page