Motion magnification tools for offline videos and live camera streams.
Reference article: https://warped3.substack.com/p/motion-magnification
- Eulerian magnification for video files.
- Live camera magnification with real-time preview.
- Optional recording of processed live output.
- Camera device dropdown with refresh.
- Camera mode probing (resolution/FPS) and one-click apply.
- Capture/save resolution controls.
- Desktop UI (Tkinter), no web server required.
- Python 3.10+ recommended.
- Windows/macOS/Linux with OpenCV-compatible camera/video codecs.
pip install -r requirements.txtpython ui_app.py- Open the
Live Cameratab. - Choose a camera from
Camera Device. - Click
Probe Modesto detect common supported modes. - Pick a mode and click
Use Selected Mode(optional but recommended). - Enable recording and choose
Save Aspath if you want output saved. - Click
Start Live Camera. - Press
qin the OpenCV window to stop.
- Open the
Video Processingtab. - Select input video.
- Select output video path.
- Set magnification/filter parameters.
- Click
Process Video.
ui_app.py: desktop UI.ampEul.py: file-based Eulerian magnification.ampLive.py: live magnification pipeline.ampPhase.py,ampPhaseSingleChannel.py: phase-based variants.
chunk_sizemust be greater thanoverlap.high_cutoffmust be greater thanlow_cutoff.- If a requested capture mode is unsupported by camera driver, OpenCV may silently fall back to a nearby/default mode.