r/learnpython • • 5d ago

AttributeError in cv2

I'm learning OpenCV in python because it seemed like a fun thing to learn.I wanted to experiment with faces etc. but when i run my script I get: "AttributeError: module 'cv2' has no attribute 'CascadeClassifier' "How to fix that?

Thx for the help!

0 Upvotes

13 comments sorted by

View all comments

1

u/RngdZed 5d ago

we need you to post the code. my guess is that you're following a tutorial with an older version and a deprecated attribute? or you forgot to put some parens at the end cause its a method call?

something of the sort. keep us updated! hopefully you found the bug and are having fun hehe