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

Deprecated code #12

Open
shakram02 opened this issue May 19, 2018 · 2 comments
Open

Deprecated code #12

shakram02 opened this issue May 19, 2018 · 2 comments

Comments

@shakram02
Copy link

in Opencv3 (which is now installed from pip)

This line

 bgModel = cv2.BackgroundSubtractorMOG2(0, bgSubThreshold)

should be

cv2.createBackgroundSubtractorMOG2(0, bgSubThreshold)

and

contours, hierarchy = cv2.findContours(thresh1, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)

should be

x, contours, y = cv2.findContours(thresh1, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
@MohRaouf
Copy link

MohRaouf commented Jul 1, 2020

ياااه يا حمدي بشوفك في حتت غريبة 😂

@shakram02
Copy link
Author

الانتشار مهم 😂

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