Issue with XML files in GOT Snapchat filter challenge

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!

Hey @Aayushhh, downgrade your opencv version using the command,
!pip install opencv-python==3.4.2.16. And than your code will run fine.

Hope this resolved your doubt.
Happy Learning :blush: