Pyoptflow
Optical Flow estimation in pure Python
Install / Use
/learn @scivision/PyoptflowREADME
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
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
85.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
342.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
