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

asked 2017-02-05 04:02:55 -0600

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

edit retag flag offensive close merge delete

Comments

opencv version ?

berak gravatar imageberak ( 2017-02-05 04:13:20 -0600 )edit