μMotion is a lightweight motion detection library for Python inspired by the Arduino μMotion library.
It uses OpenCV and NumPy to detect motion on any camera compatible with OpenCV.
- Motion detection in Python for Raspberry Pi, Jetson, PC, etc.
- Two modes:
- SUMMARY Mode – Counts total pixels that changed between frames
- RAW_DIFF Mode – Prints ASCII per-pixel difference (
.for changed, space for unchanged)
- Adjustable threshold for motion sensitivity
- Simple and clean API similar to Arduino library
- Easy to run examples for quick testing
git clone https://github.com/roboticist-blip/uMotionPython
cd uMotionPython
python3 -m pip install -e .How μMotion is Different from OpenCV Motion Detection
OpenCV is a general-purpose computer vision library. μMotion is a motion intelligence engine purpose-built for embedded vision, real-time performance, and AI-assisted decision systems. Built for the edge. Faster than OpenCV.
Open for contributions and test !