BackgroundSubtractorCNT is in OpenCV 3.3.0

Although BackgroundSubtractorCNT is in OpenCv 3.3.0, future features and improvements will be added in the offline project.

Proudly announcing that BackgroundSubtractorCNT is in OpenCV

The guys at OpenCV decided to incorporate the original code of BackgroundSubtractorCNT into opencv_contrib-3.3.0.

Although I didn’t motivate this (see here), I’m pretty glad they found it useful enough to take it in.

Compatibility

You can potentially use the original BackgroundSubtractorCNT project with opencv_conrib-3.3.0. This will only be beneficial if and when the BackgroundSubtractorCNT project will advance faster in development.

If you’re going to do that, then:

For using the code from the BackgroundSubtractorCNT project, you should be okay as long as you’re:

Not “using namespace cv::bgsubcnt;“

Are using the cv::bgsubcnt namespace explicitly, as in cv::bgsubcnt::createBackgroundSubtractorCNT(…).

For using the code from the opencv_contrib-3.3.0, use it as you would use any other of their BackgroundSubtractor classes.

Future development

Currently BackgroundSubtractorCNT is maintained as a project of its own. Future development of features and improvements will happen in this offline project.

Documentation

Whichever code you’re going to use (same code – different progress), the best documentation is currently available at the official site.

thanks your job. but
There isn’t cv2.createBackgroundSubtractorCNT() or cv2.bgsegm.BackgroundSubtractorCNT()
I found all of the modules in cv2 but there isn’t
Would you please imform how can I do it in OpenCV 3.3.0_contrib,python? not ‘import bgsubcnt’

I have some ideas on improving it in some areas, but I’m currently too occupied to pursue them and I’m not yet sure if to try and monetize these ideas (cheaply monetize – few bucks – don’t worry)…
I didn’t share the algorithm documentation, but you can understand it good enough for tuning it here.