Ask Your Question

Revision history [back]

Opencv AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG'

I'don't know if the section is right but i'have a problem in python and opencv. i'm trying a code python module opencv and python 2.7 and windows xp. but this error appears.

bgsMOG = cv2.BackgroundSubtractorMOG()

AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG'

what i have to do? which is the problem? Tanks