From ad6700199e3ef13d6f28cf4f4515117e3bbae47e Mon Sep 17 00:00:00 2001 From: Andrews Sobral 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 ea98f544a5..1409c3d8b2 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 fe068a9645..4d635ff239 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 a2f4dfc64c..386bc1495e 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)

@@ -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 9360f5483e..bb42949bae 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 c0211cb364..8ddefdffe2 100644 --- a/setup.py +++ b/setup.py @@ -208,7 +208,7 @@ def build_cmake(self, extension): 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 2ba553658e..d23df21988 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_(m, "MultiCue") + .def(py::init<>()) + .def("apply", &MultiCue::apply) + .def("getBackgroundModel", &MultiCue::getBackgroundModel) + ; +#endif + py::class_(m, "FuzzySugenoIntegral") .def(py::init<>()) .def("apply", &FuzzySugenoIntegral::apply) @@ -242,13 +249,6 @@ PYBIND11_MODULE(pybgs, m) .def("getBackgroundModel", &IndependentMultimodal::getBackgroundModel) ; - py::class_(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_(m, "LBP_MRF") .def(py::init<>())