-
Notifications
You must be signed in to change notification settings - Fork 113
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
AttributeError: module 'cv2' has no attribute 'data' #5
Comments
Try installing opencv-contrib-python. |
I get the same after after installing opencv-contrib! What should I do? |
any fixes ? |
Traceback (most recent call last): |
Sir What about its data set? |
Change it to: |
I had the same issue, this solved it for me: |
Thanks @CallShaul! This fixed it for me too. |
having installed both python-opencv and opencv-contrib-python may cause some problems in the same environment (https://pypi.org/project/opencv-contrib-python/) be sure to uninstall before 1 before installing the other |
detector = cv2.cascadeClassifier(haarcascadePath) |
It's Cascade classifier 'C' should be capitalized just a typo |
I have pip uninstalled opencv-python and installed opencv-contrib-python but I still get this error. This is the line with the problem: face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + 'haarcascade_frontalface_default.xml') |
@usernames-privacy am also facing the same issue. But i think the problem might stem from the cascade file not been available in the cv folder. |
No description provided.
The text was updated successfully, but these errors were encountered: