Cannot find BackgroundSubtractorMOG() and BackgroundSubtractorGMG() in OpenCV 3.0 with Python 2.7
I was trying to make some codes following the tutorial, but when I use these functions as suggested in the doc it appears this error: AttributeError: 'module' object has no attribute 'createBackgroundSubtractorMOG'.
What should I do? Thanks!
BackgroundSubtractorMOG()
andBackgroundSubtractorGMG()
have been moved to the bgsegm module of the contrib repository. As far as I know, no Python wrappers are available for such repository, so you just can't use those classes.Please, point out what tutorial you've followed, so we can fix it/add a note about this issue
Thanks Lorena. It was very helpful. I've followed this tutorial here: https://opencv-python-tutroals.readth...
I've checked and the official Python tutorial in the OpenCV3.0 docs says nothing about this. I'll add a note if I find some spare time
well, once one builds the opencv_contrib repo, they are avaliable from python:
My bad then, though I saw this issue and thought it was unresolved https://github.com/Itseez/opencv/issu...