Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
A C++ Background Subtraction Library with wrappers for Python, MATLAB, Java and GUI on QT
| Date | Stars |
|---|---|
| 2026-07-24 | 2277 |
| 2026-07-25 | 2277 |
| 2026-07-28 | 2277 |
| 2026-07-30 | 2277 |
| 2026-08-06 | 2277 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
<p align="center">
<img src="https://github.com/andrewssobral/bgslibrary/blob/master/docs/images/bgslibrary-logo.jpg?raw=true" alt="BGSLibrary" width="200">
</p>
# BGSLibrary: A Background Subtraction Library
[](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [](https://opensource.org/licenses/MIT) [](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [](https://github.com/andrewssobral/bgslibrary/wiki/List-of-available-algorithms) [](https://deepwiki.com/andrewssobral/bgslibrary)
<p align="center">
<a href="https://youtu.be/_UbERwuQ0OU" target="_blank">
<img src="https://raw.githubusercontent.com/andrewssobral/bgslibrary/master/docs/images/bgs_giphy2.gif" border="0" />
</a>
</p>
## Introduction
The **BGSLibrary** (Background Subtraction Library) is a comprehensive C++ framework designed for background subtraction in computer vision applications, particularly for detecting moving objects in video streams. It provides an easy-to-use and extensible platform for researchers and developers to experiment with and implement various background subtraction techniques.
## Library Version
**3.3.1** (see **[Build Status](https://github.com/andrewssobral/bgslibrary/wiki/Build-status)** and **[Release Notes](https://github.com/andrewssobral/bgslibrary/wiki/Release-notes)** for more info)
## Background and Development
The BGSLibrary was developed in early 2012 by [Andrews Cordolino Sobral](http://andrewssobral.wixsite.com/home) as a C++ framework with wrappers available for Python, Java, and MATLAB. It aims to facilitate foreground-background separation in videos using the OpenCV library.
## Compatibility
The library is compatible with OpenCV versions 2.4.x, 3.x, and 4.x. It can be compiled and used on Windows, Linux, and Mac OS X systems.
## Licensing
The library's source code is available under the [MIT license](https://opensource.org/licenses/MIT), making it free for both academic and commercial use.
## Getting started
* [List of available algorithms](https://github.com/andrewssobral/bgslibrary/wiki/List-of-available-algorithms)
* [Algorithms benchmark](https://github.com/andrewssobral/bgslibrary/wiki/Algorithms-benchmark)
* [Which algorithms really matter?](https://github.com/andrewssobral/bgslibrary/wiki/Which-algorithms-really-matter%3F)
* [Library architecture](https://github.com/andrewssobral/bgslibrary/wiki/Library-architecture)
[](https://deepwiki.com/andrewssobral/bgslibrary)
```cpp
#include <iostream>
#include <algorithm>
#include <iterator>
#include <vector>
// Include the OpenCV and BGSLibrary libraries
#include <opencv2/opencv.hpp>
#include <bgslibrary/algorithms/algorithms.h>
int main( int argc, char** argv )
{
// Gets the names of the background subtraction algorithms registered in the BGSLibrary factory
auto algorithmsName = BGS_Factory::Instance()->GetRegisteredAlgorithmsName();
// Displays the number of available background subtraction algorithms in the BGSLibrary
std::cout << "Number of available algorithms: " << algorithmsName.size() << std::endl;
// Displays the list of available background subtraction algorithms in the BGSLibrary
std::cout << "List of available algorithms:" << std::endl;
std::copy(algorithmsName.begin(), algorithmsName.end()Excerpt of 20,021 characters
Read on GitHub306
5
3
2
1
1
1
1
1
1
1
1
1
1
1
1
Hannes · Austria
1
1
1
1
Would you bet a product on this? Bounded 0–100 and slow moving.
matched fp:5ff528440333ed12, topic:computer-vision, topic:opencv, readme:computer vision