From ad6700199e3ef13d6f28cf4f4515117e3bbae47e Mon Sep 17 00:00:00 2001
From: Andrews Sobral <andrewssobral@gmail.com>
Date: Sat, 4 Mar 2023 20:08:29 +0100
Subject: [PATCH] Enabled new algorithms in the python module. Increased
 release to 3.3.0

---
 .properties                          |  2 +-
 CMakeLists.txt                       |  2 +-
 README.md                            |  4 ++--
 gui/qt/bgslibrary_gui.cpp            |  4 ++--
 setup.py                             |  2 +-
 wrapper/python/bgslibrary_module.cpp | 16 ++++++++--------
 6 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/.properties b/.properties
index ea98f54..1409c3d 100644
--- a/.properties
+++ b/.properties
@@ -1 +1 @@
-version=3.2.0-SNAPSHOT
+version=3.3.0-SNAPSHOT
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fe068a9..4d635ff 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
 cmake_minimum_required(VERSION 3.1)
 
-project(bgslibrary VERSION 3.2.0)
+project(bgslibrary VERSION 3.3.0)
 
 include(CheckCXXCompilerFlag)
 
diff --git a/README.md b/README.md
index a2f4dfc..386bc14 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
 ## BGSLibrary
 A Background Subtraction Library
 
-[![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)
+[![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)
 
 <p align="center">
 <a href="https://youtu.be/_UbERwuQ0OU" target="_blank">
@@ -11,7 +11,7 @@ A Background Subtraction Library
 
 Last page update: **04/03/2023**
 
-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)
+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)
 
 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).
 
diff --git a/gui/qt/bgslibrary_gui.cpp b/gui/qt/bgslibrary_gui.cpp
index 9360f54..bb42949 100644
--- a/gui/qt/bgslibrary_gui.cpp
+++ b/gui/qt/bgslibrary_gui.cpp
@@ -3,7 +3,7 @@
 int main(int argc, char *argv[])
 {
   std::cout << "--------------------------------------------" << std::endl;
-  std::cout << "Background Subtraction Library v3.2.0       " << std::endl;
+  std::cout << "Background Subtraction Library v3.3.0       " << std::endl;
   std::cout << "https://github.com/andrewssobral/bgslibrary " << std::endl;
   std::cout << "by:                                         " << std::endl;
   std::cout << "Andrews Sobral (andrewssobral@gmail.com)    " << std::endl;
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
   QApplication a(argc, argv);
 
   QCoreApplication::setApplicationName("BGSLibrary");
-  QCoreApplication::setApplicationVersion("3.2.0");
+  QCoreApplication::setApplicationVersion("3.3.0");
 
   MainWindow w;
   w.show();
diff --git a/setup.py b/setup.py
index c0211cb..8ddefdf 100644
--- a/setup.py
+++ b/setup.py
@@ -208,7 +208,7 @@ with open("README.md", "r") as fh:
 
 setup(
     name='pybgs',
-    version='3.2.0.post1',
+    version='3.3.0.post0',
     author='Andrews Sobral',
     author_email='andrewssobral@gmail.com',
     url='https://github.com/andrewssobral/bgslibrary',
diff --git a/wrapper/python/bgslibrary_module.cpp b/wrapper/python/bgslibrary_module.cpp
index 2ba5536..d23df21 100644
--- a/wrapper/python/bgslibrary_module.cpp
+++ b/wrapper/python/bgslibrary_module.cpp
@@ -35,7 +35,7 @@ PYBIND11_MODULE(pybgs, m)
 {
   NDArrayConverter::init_numpy();
   m.doc() = "python wrapper for bgslibrary using pybind11";
-  py::object version = py::cast("3.2.0");
+  py::object version = py::cast("3.3.0");
   m.attr("__version__") = version;
 
   // Basic test
@@ -182,6 +182,13 @@ PYBIND11_MODULE(pybgs, m)
     .def("getBackgroundModel", &T2FMRF_UV::getBackgroundModel)
     ;
 
+  py::class_<MultiCue>(m, "MultiCue")
+    .def(py::init<>())
+    .def("apply", &MultiCue::apply)
+    .def("getBackgroundModel", &MultiCue::getBackgroundModel)
+    ;
+#endif
+
   py::class_<FuzzySugenoIntegral>(m, "FuzzySugenoIntegral")
     .def(py::init<>())
     .def("apply", &FuzzySugenoIntegral::apply)
@@ -242,13 +249,6 @@ PYBIND11_MODULE(pybgs, m)
     .def("getBackgroundModel", &IndependentMultimodal::getBackgroundModel)
     ;
 
-  py::class_<MultiCue>(m, "MultiCue")
-    .def(py::init<>())
-    .def("apply", &MultiCue::apply)
-    .def("getBackgroundModel", &MultiCue::getBackgroundModel)
-    ;
-#endif
-
 #if (CV_MAJOR_VERSION == 2) || (CV_MAJOR_VERSION == 3 && CV_MINOR_VERSION <= 4 && CV_VERSION_REVISION <= 7)
   py::class_<LBP_MRF>(m, "LBP_MRF")
     .def(py::init<>())
-- 
GitLab