Jump to content

GStreamer Motion Detection: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 15: Line 15:


[[File:motion-detect-logo-rr.png|center|GStreamer Motion Detection plugin]]
[[File:motion-detect-logo-rr.png|center|GStreamer Motion Detection plugin]]




= GStreamer Background Subtraction Camera-Based Motion Detection Plugin =
= GStreamer Background Subtraction Camera-Based Motion Detection Plugin =
RidgeRun has developed a Motion Detection GStreamer element that is able to detect motion from an incoming video image of a steady camera that does not move. The element implements the approximate median method for background subtraction algorithm with adapting background. This method matches other higher-complexity algorithms in performance, while being resilient to constant noise or sudden light changes happening in the scene.
RidgeRun has developed a Motion Detection GStreamer element that is able to detect motion from an incoming video image of a steady camera that does not move. The element implements the approximate median method for background subtraction with an adapting background algorithm. This method matches other higher-complexity algorithms in performance while being resilient to constant noise or sudden light changes happening in the scene.


When the camera is steady and fixed in a position, a common motion detection video approach is to perform background subtraction. With background subtraction, a static scene model is built, which is called the background. Incoming frames are compared to the background in order to detect regions of movement. Motion detection algorithms generally work by comparing the incoming video image to a reference image. The reference image could be previous frames or a predefined background. Motion detection is accomplished by analyzing deviations from the reference, and attributing the difference either to the presence of motion or due to noise, such as untended motion on the camera mount.
When the camera is steady and fixed in a position, a common motion detection video approach is to perform background subtraction. With background subtraction, a static scene model is built, which is called the background. Incoming frames are compared to the background in order to detect regions of movement. Motion detection algorithms generally work by comparing the incoming video image to a reference image. The reference image could be previous frames or a predefined background. Motion detection is accomplished by analyzing deviations from the reference and attributing the difference either to the presence of motion or due to noise, such as untended motion on the camera mount.


This motion detection GStreamer element has been developed for GStreamer 1.0 and 0.10 versions. The element runs in any platform (hardware independent) since the motion detection algorithm is executed by the general-purpose processor (CPU), and do not depend on external computer vision libraries. The gst-motion-detect element is optimized and highly configurable, both for controlling the approximate median algorithm, as well as for minimizing CPU load to obtain the best performance accordingly to the user needs, allowing it to be integrated into highly constrained embedded systems.
This motion detection GStreamer element has been developed for GStreamer 1.0 and 0.10 versions. The element runs in any platform (hardware independent) since the motion detection algorithm is executed by the general-purpose processor (CPU), and do not depend on external computer vision libraries. The gst-motion-detect element is optimized and highly configurable, both for controlling the approximate median algorithm, as well as for minimizing CPU load to obtain the best performance accordingly to the user needs, allowing it to be integrated into highly constrained embedded systems.


Some of the element properties to reduce the CPU consumption are:
If you are interested in this solution please follow this link for detailed information:
* [[https://developer.ridgerun.com/wiki/index.php?title=Camera_Based_Motion_Detection | GStreamer Background Subtraction Camera-Based Motion Detection Plugin]]


== Key features ==
Sample size and location: You can set a rectangular region equal or smaller than the full frame size and locate it everywhere in the frame. The motion detect analysis is only executed in the sample rectangle. The related element properties are: window-x1, window-x2, window-y1, window-y2, sample-width, sample-height.
Sample size and location: You can set a rectangular region equal or smaller than the full frame size and locate it everywhere in the frame. The motion detect analysis is only executed in the sample rectangle. The related element properties are: window-x1, window-x2, window-y1, window-y2, sample-width, sample-height.
Interval frame analysis: Only analyze every nth frame. Related element property: interval.
Interval frame analysis: Only analyze every nth frame. Related element property: interval.
== Key features ==




1,433

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.