Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

module 'cv2' has no attribute 'createBackgroundSubtractorMOG'

$
0
0
I am using Python 3.5.1 and opencv 3.1.0. I am trying to use cv2.createBackgroundSubtractorMOG() method in Python. I get the following error when running the code : fgbg = cv2.createBackgroundSubtractorMOG() AttributeError: module 'cv2' has no attribute 'createBackgroundSubtractorMOG2' Code I am using is from http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_video/py_bg_subtraction/py_bg_subtraction.html#py-background-subtraction I tried searching online but not able to solve problem. Please help me out, Thanks in advance.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>