Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?