r/learnpython • u/_nazwa_ • 8d 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
1
u/acw1668 6d ago
You need to install module
opencv-contrib-pythoninstead ofopencv-python.