Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'cv2.cv2' has no attribute 'BackgroundSubtractorMOG' #73

Closed
rajagunasek opened this issue Apr 28, 2019 · 2 comments
Closed

'cv2.cv2' has no attribute 'BackgroundSubtractorMOG' #73

rajagunasek opened this issue Apr 28, 2019 · 2 comments

Comments

@rajagunasek
Copy link

self.BackgroundSubtractorMOG = cv2.BackgroundSubtractorMOG(history, numberMixtures, backgroundRatio, noise)
AttributeError: module 'cv2.cv2' has no attribute 'BackgroundSubtractorMOG'

@mpatacchiola
Copy link
Owner

Hi @rajagunasek Which version of OpenCV are you using? This error may be due to an incompatible version being used.

@mpatacchiola
Copy link
Owner

This issue may also be due to the differences between OpenCV 2 and 3. Please refer to #81 for a possible patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants