nobe4 / mini-sentry

Dead-simple motion tracking with image ~hosting and notification.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mini Sentry

Mini Sentry

This is a dead-simple movement detection application with slack notification.

To install, configure and run the script, see sentry.py.

Theory

The detection algorithm is based on the work of Kameda, Y. & Minoh, M. in "A human motion estimation method using 3-successive video frames."
The idea is to compare a frame against the previous and next one, and apply a bitwise and to the result. That way we can remove most of the artifacts of a temporal comparison.
The movement is then obtained by looking at pixels above a certain threshold in that final and image. In this version, number of pixels changing is also monitored in order to reject case with too many changes (e.g.: major background change, camera movement, etc.)

License

This script is released under the MIT License.

OpenCV is used in respect with its 3-clause BSD License.

Requests is used in respect with its Apache License, Version 2.0.

All references to TeamFortress and Valve are properties of their respective owners.

About

Dead-simple motion tracking with image ~hosting and notification.

License:MIT License


Languages

Language:Python 100.0%