Haarcascade files Not working

Here is a screenshot of the error, i have tried almost everything on stack overflow but can’t get rid of this.
https://drive.google.com/open?id=1AcWfUHE6TIV65Tv_dDjM4E0FUOkDRcfe

Here is the link to my code: https://ide.codingblocks.com/s/161039

Hey,
Please try uninstall reinstall opencv.

Tried it but doesn’t work.

Can you try installing cv2 version '4.1.1’
Also, did you try cv2.CascadeClassifier(cv2.data.haarcascades + "file.xml")

It worked!!! Thank u very much (version 4.1.1 didn’t work but version 3.4.4 worked). And yes i tried cv2.data.haarcascades, but that didn’t work. My guess is that they removed the functionality for third-party haarcascades in later versions.

1 Like

plz help me
i unable to convert the image i got after overlaying glasses and mustaches into csv file
plz tell me way out