C++ Java C CMake Matlab QMake Other
Latest commit 685d300 Feb 25, 2018
lgov and andrewssobral Independent Multimodal algorithm: assert that a frame is larger than …
…0x0 pixels (#111)

* package_bgs/IMBS/IMBS.cpp
  (BackgroundSubtractorIMBS::apply): assert that size > 0.
Permalink
Failed to load latest commit information.
build Fixed VS2010 project. Apr 23, 2016
cmake-modules Fixed VS2010 project. Apr 23, 2016
config Added CodeBook algorithm and fixed some issues Mar 19, 2017
dataset BGSLibrary 2.0.0 Mar 18, 2017
demos update the macos demo to work with OpenCV 3.x Apr 5, 2017
docs BGSLibrary 2.0.0 Mar 18, 2017
fet added Docker images Oct 18, 2016
gui_java BGSLibrary 2.0.0 Mar 18, 2017
gui_mfc BGSLibrary 2.0.0 Mar 18, 2017
gui_qt Replace tabs with spaces Aug 27, 2017
output BGSLibrary 2.0.0 Mar 18, 2017
package_analysis BGSLibrary 2.0.0 Mar 18, 2017
package_bgs Independent Multimodal algorithm: assert that a frame is larger than … Feb 25, 2018
wrapper_java Added Java Wrapper Mar 31, 2017
wrapper_matlab Fixes for CodeBook algorithm Mar 19, 2017
wrapper_python Fixed memory leak for OpenCV3 and Python3 Jan 28, 2018
.gitattributes Small fix Jul 16, 2015
.gitignore BGSLibrary 2.0.0 Mar 18, 2017
CMakeLists.txt Replace tabs with spaces Aug 27, 2017
COPYING.txt bgslibrary v1.9.0 Feb 16, 2014
Config.h bgslibrary v1.9.0 Feb 23, 2014
Demo.cpp Added CodeBook algorithm and fixed some issues Mar 19, 2017
Demo.py Fix for python 3 and building python support on linux Jul 13, 2017
Demo2.cpp Added CodeBook algorithm and fixed some issues Mar 19, 2017
FrameProcessor.cpp Added CodeBook algorithm and fixed some issues Mar 19, 2017
FrameProcessor.h Added CodeBook algorithm and fixed some issues Mar 19, 2017
IFrameProcessor.h remove opencv1 dependencies. Jul 22, 2014
LICENSE Initial commit Feb 16, 2014
LICENSE.txt bgslibrary v1.9.0 Feb 16, 2014
Main.cpp BGSLibrary 2.0.0 Mar 18, 2017
PreProcessor.cpp BGSLibrary 2.0.0 Mar 18, 2017
PreProcessor.h BGSLibrary 2.0.0 Mar 18, 2017
README.md Added Java Wrapper Mar 31, 2017
VideoAnalysis.cpp BGSLibrary 2.0.0 Mar 18, 2017
VideoAnalysis.h bgslibrary v1.9.0 Feb 23, 2014
VideoCapture.cpp Fixes for CodeBook algorithm Mar 19, 2017
VideoCapture.h Fixes for CodeBook algorithm Mar 19, 2017
run_camera.bat Fixed VS2010 project. Apr 23, 2016
run_camera.sh Some fixes on CMakeLists Feb 25, 2017
run_demo.bat Some fixes on CMakeLists Feb 25, 2017
run_demo.sh Some fixes on CMakeLists Feb 25, 2017
run_demo2.bat Some fixes on CMakeLists Feb 25, 2017
run_demo2.sh Some fixes on CMakeLists Feb 25, 2017
run_video.bat Fixed VS2010 project. Apr 23, 2016
run_video.sh Some fixes on CMakeLists Feb 25, 2017

README.md

BGSLibrary

A Background Subtraction Library

Release License: GPL v3 Platform: Windows, Linux, OS X OpenCV Wrapper: Python, MATLAB Algorithms

bgslibrary

Page Update: 01/04/2017

Library Version: 2.0.0 (see Build Status and Release Notes for more info)

The BGSLibrary was developed by Andrews Sobral and provides an easy-to-use C++ framework based on OpenCV to perform foreground-background separation in videos. The bgslibrary is compatible with OpenCV 2.x and 3.x, and compiles under Windows, Linux, and Mac OS X. Currently the library contains 43 algorithms. The source code is available under GNU GPLv3 license, the library is free and open source for academic purposes.

Citation

If you use this library for your publications, please cite it as:

@inproceedings{bgslibrary,
author    = {Sobral, Andrews},
title     = {{BGSLibrary}: An OpenCV C++ Background Subtraction Library},
booktitle = {IX Workshop de Visão Computacional (WVC'2013)},
address   = {Rio de Janeiro, Brazil},
year      = {2013},
month     = {Jun},
url       = {https://github.com/andrewssobral/bgslibrary}
}

A chapter about the BGSLibrary has been published in the handbook on Background Modeling and Foreground Detection for Video Surveillance.

@incollection{bgslibrarychapter,
author    = {Sobral, Andrews and Bouwmans, Thierry},
title     = {BGS Library: A Library Framework for Algorithm’s Evaluation in Foreground/Background Segmentation},
booktitle = {Background Modeling and Foreground Detection for Video Surveillance},
publisher = {CRC Press, Taylor and Francis Group.}
year      = {2014},
}

Download PDF:

  • Sobral, Andrews. BGSLibrary: An OpenCV C++ Background Subtraction Library. IX Workshop de Visão Computacional (WVC'2013), Rio de Janeiro, Brazil, Jun. 2013. (PDF in brazilian-portuguese containing an english abstract).

  • Sobral, Andrews; Bouwmans, Thierry. "BGS Library: A Library Framework for Algorithm’s Evaluation in Foreground/Background Segmentation". Chapter on the handbook "Background Modeling and Foreground Detection for Video Surveillance", CRC Press, Taylor and Francis Group, 2014. (PDF in english).

Some references

Some algorithms of the BGSLibrary were used successfully in the following papers:

  • (2014) Sobral, Andrews; Vacavant, Antoine. A comprehensive review of background subtraction algorithms evaluated with synthetic and real videos. Computer Vision and Image Understanding (CVIU), 2014. (Online) (PDF)

  • (2013) Sobral, Andrews; Oliveira, Luciano; Schnitman, Leizer; Souza, Felippe. (Best Paper Award) Highway Traffic Congestion Classification Using Holistic Properties. In International Conference on Signal Processing, Pattern Recognition and Applications (SPPRA'2013), Innsbruck, Austria, Feb 2013. (Online) (PDF)

Videos