OpenCV2 Python createBackgroundSubtractor module not found
Replace the create.... with
fgbg = cv2.BackgroundSubtractorMOG()
cv2.createbackgroundSubstractor()
works in cv 3.0 for 2.4.x use cv2.BackgroundSubstractor()
I'm using
>>> import cv2>>> cv2.__version__>>> 3.2.0
and python 2.7.12. While I tried to use cv2.createBackgroundSubtractorMOG() I received the same error message (also tried without "create..."). But I was surprised when I discovered cv2.createBackgroundSubtractorKNN() with the same functionality instead ... and the test code works :)2 days I was confused and couldn't find where the problem is.