Unable to load harr cascade file for frontal eye
while loading it is showing this error
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:569: error: (-2:Unspecified error) in function ‘bool _thiscall cv::HaarEvaluator::Feature::read(const class cv::FileNode &,const class cv::Size &)’
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
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File “copy.py”, line 7, in
eyes_cascade = cv2.CascadeClassifier(‘frontalEyes35x16.xml’)
SystemError: <class ‘cv2.CascadeClassifier’> returned a result with an error set