I’ve tried some solutions for this, used the entire path of the xml file, and used this, reinstalled opencv, tried the full path with ‘\’ :
eyes_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + ‘./third-party/frontalEyes35x16.xml’)
nose_cascade = cv2.CascadeClassifier(cv2.data.haarcascades + ‘./third-party/Nose18x15.xml’) .
The error is usually
Invalid HAAR feature (expected: ‘rw.r.x + rw.r.width <= W’), where
‘rw.r.x + rw.r.width’ is 22
must be less than or equal to
‘W’ is 16
If not, then the cascade is empty.
I tried different xml files from random sources, and they seem to work, but i couldn’t find a good nose file.
Please help!
