forked from codebrainz/motiondetector
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
25 lines (20 loc) · 912 Bytes
/
README
File metadata and controls
25 lines (20 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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