https://github.com/codebrainz/motiondetector
GStreamer video motion detection plugin.
https://github.com/codebrainz/motiondetector
Last synced: 9 months ago
JSON representation
GStreamer video motion detection plugin.
- Host: GitHub
- URL: https://github.com/codebrainz/motiondetector
- Owner: codebrainz
- License: lgpl-2.1
- Created: 2011-11-28T08:19:14.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2022-01-13T17:26:42.000Z (almost 4 years ago)
- Last Synced: 2025-03-26T08:23:17.403Z (9 months ago)
- Language: C
- Homepage:
- Size: 107 KB
- Stars: 18
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
GStreamer Motion Detector Plugin
================================
This is a simple GStreamer plugin that detects motion in a video
stream in a Gstreamer pipeline. The element has one sink pad and
one source pad, both only support 24-bit RGB formats.
Connect the element inline with your video stream and either watch
the elements `notify::motion-detected` signal or watch for application
bus messages containing motion information.
The plugin uses OpenCV to find moving blobs against an averaged
background scene. It's not super-robust but it's still quite
accurate. You can tweak the element properties to improve detection
somewhat.
Here's a sample pipeline:
$ gst-launch -v --gst-plugin-path=$PLUGIN_PATH \
autovideosrc ! \
video/x-raw-rgb ! \
motiondetector draw_motion=true rate_limit=500 ! \
ffmpegcolorspace ! \
queue ! \
autovideosink