https://github.com/nobe4/mini-sentry
Dead-simple motion tracking with image ~hosting and notification.
https://github.com/nobe4/mini-sentry
camera motion-tracking notifications opencv slack tracking
Last synced: about 1 year ago
JSON representation
Dead-simple motion tracking with image ~hosting and notification.
- Host: GitHub
- URL: https://github.com/nobe4/mini-sentry
- Owner: nobe4
- License: mit
- Created: 2017-02-27T11:07:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T21:39:45.000Z (about 9 years ago)
- Last Synced: 2025-04-02T20:22:17.479Z (about 1 year ago)
- Topics: camera, motion-tracking, notifications, opencv, slack, tracking
- Language: Python
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Mini Sentry
This is a dead-simple movement detection application with slack notification.
To install, configure and run the script, see [`sentry.py`](https://github.com/nobe4/mini-sentry/blob/master/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](https://github.com/nobe4/mini-sentry/blob/master/LICENSE).
OpenCV is used in respect with its [3-clause BSD License](http://opencv.org/license.html).
Requests is used in respect with its [Apache License, Version 2.0](http://docs.python-requests.org/en/master/user/intro/#requests-license).
All references to TeamFortress and Valve are properties of their respective owners.