Skip to content

Commit

Permalink
Enabled new algorithms in the python module. Increased release to 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewssobral committed Mar 4, 2023
1 parent 0616c0c commit ad67001
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=3.2.0-SNAPSHOT
version=3.3.0-SNAPSHOT
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.1)

project(bgslibrary VERSION 3.2.0)
project(bgslibrary VERSION 3.3.0)

include(CheckCXXCompilerFlag)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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">
Expand All @@ -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).

Expand Down
4 changes: 2 additions & 2 deletions gui/qt/bgslibrary_gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ([email protected]) " << std::endl;
Expand All @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
url='https://github.com/andrewssobral/bgslibrary',
Expand Down
16 changes: 8 additions & 8 deletions wrapper/python/bgslibrary_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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<>())
Expand Down

0 comments on commit ad67001

Please sign in to comment.