Unable to use background subtractor.
I have installed opencv 3.3 when running python
:
import cv2
cv2.__version__
returns:
'3.3.0'
unfortunately when running:
cv2.createBackgroundSubtractorMOG()
Python returns:
AttributeError: 'module' object has no attribute 'createBackgroundSubtractorMOG'
when I run:
cv2.bgsegm
Python returns:
ImportError: No module named bgsegm
What is going on?
let's start here: "I have installed opencv 3.3" -- how so ?
you need to build cv2 from src with the contrib modules
(if you installed it via PIP or the like, it won't have it)