I am trying to use cv2.createBackgroundSubtractorMOG2 () method in Python. I have tried both on my Mac and on my Raspberry Pi, and get the same error when running the follow
Replace the create.... with
fgbg = cv2.BackgroundSubtractorMOG()