Haarcascade file giving error

HaarCascade file given in training data is giving error.

Please try to uninstall reinstall OpenCV.
If it doesn’t work try an older version like 3.4.4

I hope I’ve cleared your doubt.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen the doubt.