Skip to content

Commit ad67001

Browse files
committed
Enabled new algorithms in the python module. Increased release to 3.3.0
1 parent 0616c0c commit ad67001

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=3.2.0-SNAPSHOT
1+
version=3.3.0-SNAPSHOT

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.1)
22

3-
project(bgslibrary VERSION 3.2.0)
3+
project(bgslibrary VERSION 3.3.0)
44

55
include(CheckCXXCompilerFlag)
66

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## BGSLibrary
22
A Background Subtraction Library
33

4-
[![Release](https://img.shields.io/badge/Release-3.2.0-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![License: GPL v3](https://img.shields.io/badge/License-MIT-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![Platform: Windows, Linux, OS X](https://img.shields.io/badge/Platform-Windows%2C%20Linux%2C%20OS%20X-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![OpenCV](https://img.shields.io/badge/OpenCV-2.4.x%2C%203.x%2C%204.x-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![Wrapper: Python, MATLAB](https://img.shields.io/badge/Wrapper-Java%2C%20Python%2C%20MATLAB-orange.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![Algorithms](https://img.shields.io/badge/Algorithms-43-red.svg)](https://github.com/andrewssobral/bgslibrary/wiki/List-of-available-algorithms)
4+
[![Release](https://img.shields.io/badge/Release-3.3.0-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![License: GPL v3](https://img.shields.io/badge/License-MIT-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![Platform: Windows, Linux, OS X](https://img.shields.io/badge/Platform-Windows%2C%20Linux%2C%20OS%20X-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![OpenCV](https://img.shields.io/badge/OpenCV-2.4.x%2C%203.x%2C%204.x-blue.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![Wrapper: Python, MATLAB](https://img.shields.io/badge/Wrapper-Java%2C%20Python%2C%20MATLAB-orange.svg)](https://github.com/andrewssobral/bgslibrary/wiki/Build-status) [![Algorithms](https://img.shields.io/badge/Algorithms-43-red.svg)](https://github.com/andrewssobral/bgslibrary/wiki/List-of-available-algorithms)
55

66
<p align="center">
77
<a href="https://youtu.be/_UbERwuQ0OU" target="_blank">
@@ -11,7 +11,7 @@ A Background Subtraction Library
1111

1212
Last page update: **04/03/2023**
1313

14-
Library Version: **3.2.0** (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)
14+
Library Version: **3.3.0** (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)
1515

1616
The **BGSLibrary** was developed in early 2012 by [Andrews Sobral](http://andrewssobral.wixsite.com/home) as a C++ framework (with wrappers available for Python, Java and MATLAB) for foreground-background separation in videos using [OpenCV](http://www.opencv.org/). The bgslibrary is compatible with OpenCV versions 2.4.x, 3.x and 4.x, and can be compiled on Windows, Linux, and Mac OS X. It currently contains **43** algorithms and is available free of charge to all users, both academic and commercial. The library's source code is available under the [MIT license](https://opensource.org/licenses/MIT).
1717

gui/qt/bgslibrary_gui.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
int main(int argc, char *argv[])
44
{
55
std::cout << "--------------------------------------------" << std::endl;
6-
std::cout << "Background Subtraction Library v3.2.0 " << std::endl;
6+
std::cout << "Background Subtraction Library v3.3.0 " << std::endl;
77
std::cout << "https://github.com/andrewssobral/bgslibrary " << std::endl;
88
std::cout << "by: " << std::endl;
99
std::cout << "Andrews Sobral (andrewssobral@gmail.com) " << std::endl;
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
1313
QApplication a(argc, argv);
1414

1515
QCoreApplication::setApplicationName("BGSLibrary");
16-
QCoreApplication::setApplicationVersion("3.2.0");
16+
QCoreApplication::setApplicationVersion("3.3.0");
1717

1818
MainWindow w;
1919
w.show();

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def build_cmake(self, extension):
208208

209209
setup(
210210
name='pybgs',
211-
version='3.2.0.post1',
211+
version='3.3.0.post0',
212212
author='Andrews Sobral',
213213
author_email='andrewssobral@gmail.com',
214214
url='https://github.com/andrewssobral/bgslibrary',

wrapper/python/bgslibrary_module.cpp

+8-8
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ PYBIND11_MODULE(pybgs, m)
3535
{
3636
NDArrayConverter::init_numpy();
3737
m.doc() = "python wrapper for bgslibrary using pybind11";
38-
py::object version = py::cast("3.2.0");
38+
py::object version = py::cast("3.3.0");
3939
m.attr("__version__") = version;
4040

4141
// Basic test
@@ -182,6 +182,13 @@ PYBIND11_MODULE(pybgs, m)
182182
.def("getBackgroundModel", &T2FMRF_UV::getBackgroundModel)
183183
;
184184

185+
py::class_<MultiCue>(m, "MultiCue")
186+
.def(py::init<>())
187+
.def("apply", &MultiCue::apply)
188+
.def("getBackgroundModel", &MultiCue::getBackgroundModel)
189+
;
190+
#endif
191+
185192
py::class_<FuzzySugenoIntegral>(m, "FuzzySugenoIntegral")
186193
.def(py::init<>())
187194
.def("apply", &FuzzySugenoIntegral::apply)
@@ -242,13 +249,6 @@ PYBIND11_MODULE(pybgs, m)
242249
.def("getBackgroundModel", &IndependentMultimodal::getBackgroundModel)
243250
;
244251

245-
py::class_<MultiCue>(m, "MultiCue")
246-
.def(py::init<>())
247-
.def("apply", &MultiCue::apply)
248-
.def("getBackgroundModel", &MultiCue::getBackgroundModel)
249-
;
250-
#endif
251-
252252
#if (CV_MAJOR_VERSION == 2) || (CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION <= 4 && CV_VERSION_REVISION <= 7)
253253
py::class_<LBP_MRF>(m, "LBP_MRF")
254254
.def(py::init<>())

0 commit comments

Comments
 (0)