handy
handy copied to clipboard
AttributeError: module 'cv2' has no attribute 'data'
Try installing opencv-contrib-python. command: pip install opencv-contrib-python
I get the same after after installing opencv-contrib! What should I do?
any fixes ?
Traceback (most recent call last):
File "app.py", line 9, in
Sir What about its data set?
Change it to: faceCascade = cv2.CascadeClassifier("haarcascade_frontalface_default.xml")
I had the same issue, this solved it for me: pip install opencv-contrib-python --upgrade
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) AttributeError: module 'cv2' has no attribute 'cascadeClassifier' I am getting this . Can anyone fix this ?
detector = cv2.cascadeClassifier(haarcascadePath) AttributeError: module 'cv2' has no attribute 'cascadeClassifier' I am getting this . Can anyone fix this ?
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.