This element creates and updates a fg/bg model using one of several approaches. The one called "codebook" refers to the codebook approach following the opencv O'Reilly book [1] implementation of the algorithm described in K. Kim, T. H. Chalidabhongse, D. Harwood and L. Davis [2]. BackgroundSubtractorMOG [3], or MOG for shorts, refers to a Gaussian Mixture-based Background/Foreground Segmentation Algorithm. OpenCV MOG implements the algorithm described in [4]. BackgroundSubtractorMOG2 [5], refers to another Gaussian Mixture-based Background/Foreground segmentation algorithm. OpenCV MOG2 implements the algorithm described in [6] and [7].
[1] Learning OpenCV: Computer Vision with the OpenCV Library by Gary Bradski and Adrian Kaehler, Published by O'Reilly Media, October 3, 2008 [2] "Real-time Foreground-Background Segmentation using Codebook Model", Real-time Imaging, Volume 11, Issue 3, Pages 167-256, June 2005. [3] http://opencv.itseez.com/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractormog [4] P. KadewTraKuPong and R. Bowden, "An improved adaptive background mixture model for real-time tracking with shadow detection", Proc. 2nd European Workshop on Advanced Video-Based Surveillance Systems, 2001 [5] http://opencv.itseez.com/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractormog2 [6] Z.Zivkovic, "Improved adaptive Gaussian mixture model for background subtraction", International Conference Pattern Recognition, UK, August, 2004. [7] Z.Zivkovic, F. van der Heijden, "Efficient Adaptive Density Estimation per Image Pixel for the Task of Background Subtraction", Pattern Recognition Letters, vol. 27, no. 7, pages 773-780, 2006.
Example launch line gst-launch-1.0 v4l2src device=/dev/video0 ! videoconvert ! segmentation test-mode=true method=2 ! videoconvert ! ximagesink
Hierarchy Factory details
Authors: â Miguel Casas-Sanchez
Classification: â Filter/Effect/Video
Rank â none
Plugin â opencv
Package â GStreamer Bad Plug-ins
Pad Templatessink
video/x-raw:
format: RGBA
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Presence â always
Direction â sink
Object type â GstPad
src
video/x-raw:
format: RGBA
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Presence â always
Direction â src
Object type â GstPad
Properties learning-rateâlearning-rateâ gfloat
Speed with which a motionless foreground pixel would become background (inverse of number of frames)
Flags : Read / Write
Default value : 0.01
methodâmethodâ Segmentation-method *
Segmentation method to use
Flags : Read / Write
Default value : mog2 (2)
test-modeâtest-modeâ gboolean
If true, the output RGB is overwritten with the calculated foreground (white color)
Flags : Read / Write
Default value : false
Named constants Segmentation-method Memberscodebook
(0) â Codebook-based segmentation (Bradski2008)
mog
(1) â Mixture-of-Gaussians segmentation (Bowden2001)
mog2
(2) â Mixture-of-Gaussians segmentation (Zivkovic2004)
The results of the search are
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4