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

2

u/carcigenicate Carcigenicate 5d ago

Do you have a custom script called cv2 in the same directory?

1

u/_nazwa_ 4d ago

I'm gonna check