cant find 'BackgroundSubtractorMOG2' opencv3.1.0 [closed]
sorry after closing the previous thread I tested and I can't find the "'BackgroundSubtractorMOG2'" module ? I have the MOG and GMG in the sv2.bgsegm though.
[root@hadoop1 scripts]# python
Python 3.3.3 (default, Nov 16 2016, 14:57:45)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> fpbg=cv2.BackgroundSubtractorMOG2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG2'
>>> import cv2.bgsegm
>>> fpbg=cv2.BackgroundSubtractorMOG2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG2'
>>>