Skip to content
C++ background substraction library
C++ Python CMake
Branch: master
Clone or download
dparks1134 Merge pull request #5 from gitj/fix_prati_mediod_python
Fix typo in python bindings for PratiMediod
Latest commit 4b2ce22 Aug 31, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes Background Subtraction Library Jun 19, 2014
.gitignore Background Subtraction Library Jun 19, 2014
AdaptiveMedianBGS.cpp update now learns **all** frames < LearningFrames, not only sampled ones Jun 20, 2014
AdaptiveMedianBGS.hpp python bindings Jun 20, 2014
BGS.sln Initial submission. Jun 20, 2014
BGS.vcproj Initial submission. Jun 20, 2014
Bgs.hpp Initial submission. Jun 20, 2014
BgsParams.hpp Initial submission. Jun 20, 2014
CMakeLists.txt cmake building support Jun 20, 2014
Eigenbackground.cpp fixed gss compilation error Jun 20, 2014
Eigenbackground.hpp Initial submission. Jun 20, 2014
GrimsonGMM.cpp Initial submission. Jun 20, 2014
GrimsonGMM.hpp Initial submission. Jun 20, 2014
Image.cpp Initial submission. Jun 20, 2014
Image.hpp Initial submission. Jun 20, 2014
LICENSE.txt Initial submission. Jun 20, 2014
MeanBGS.cpp Initial submission. Jun 20, 2014
MeanBGS.hpp python bindings Jun 20, 2014
PratiMediodBGS.cpp Initial submission. Jun 20, 2014
PratiMediodBGS.hpp Initial submission. Jun 20, 2014
README.md Update README.md Apr 12, 2015
WrenGA.cpp Initial submission. Jun 20, 2014
WrenGA.hpp Initial submission. Jun 20, 2014
ZivkovicAGMM.cpp Initial submission. Jun 20, 2014
ZivkovicAGMM.hpp Initial submission. Jun 20, 2014
create_params_wrapper.hpp python bindings Jun 20, 2014
main.cpp Initial submission. Jun 20, 2014
pybgs.pyx Fix typo in python bindings for PratiMediod Aug 30, 2015
pybgs_test.py python bindings Jun 20, 2014
setup.py python bindings Jun 20, 2014

README.md

Overview

This library containing 7 popular background subtraction algorithms:

  • adaptive median filtering
  • eigenbackground
  • single Gaussian
  • Gaussian mixture models
  • adaptive Gaussian mixture models
  • running mean
  • mediod filtering

This library makes use of OpenCV.

Building with CMake

$ mkdir _build
$ cd _build
$ cmake ..
$ make

Building Python Interface

  1. Install OpenCV with Python bindings enabled.

  2. Edit include_dirs in the setup.py.

  3. Build the cython module:

     $ pip install numpy cython
     $ python setup.py build_ext --inplace
    
  4. Test the module using stream from the webcam:

     $ python pybgs_test.py
    

Citation

If you find this software useful, please consider citing:

  • Parks DH, Fels SS. 2008. Evaluation of background substraction algorithms with post-processing. IEEE Fifth International Conference on Advanced Video and Signal Based Surveillance (AVSS2008): 192-199.

License

This software is released under GNU General Public License version 3. See LICENSE.txt for further details.

Contact

Inquires regarding this software can be directed to: donovan_parks_at_gmail_dot_com

You can’t perform that action at this time.