#147 · Primary category: Computer Vision

bgslibrary

background-subtraction bgs computer-vision foreground-detection moving-object-detection opencv pybgs

A C++ Background Subtraction Library with wrappers for Python, MATLAB, Java and GUI on QT

Project last updated:05/28/26

GitHub Stars

2.3K

Forks

736

Contributors

22

License

MIT

Why we included this project

Separating moving objects from a fixed camera view is a recurring problem in video analysis, and BGSLibrary collects the common solutions in one place. It has been around since 2012 and bundles 43 background subtraction algorithms behind a single C++ API, with Python, MATLAB, and Java wrappers, so you can swap methods without rewriting your pipeline. That makes it useful for surveillance or traffic systems where you want to compare a classic mixture-of-Gaussians method against a newer one on your own footage before committing. It compiles against OpenCV 2.4 through 4.x on Windows, Linux, and macOS, which eases moving the same code across environments. Researchers also get a ready-made benchmark kit for foreground detection experiments.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category