zekeriyafince / EyePair

Detecting eyes pairs in using OpenCV
MIT License
4 stars 3 forks source link

OpenCV(4.1.2) /io/opencv/modules/objdetect/src/cascadedetect.cpp:569: error: (-2:Unspecified error) in function 'bool cv::HaarEvaluator::Feature::read(const cv::FileNode&, const Size&)' #1

Open ModMaamari opened 4 years ago

ModMaamari commented 4 years ago
error                                     Traceback (most recent call last)
error: OpenCV(4.1.2) /io/opencv/modules/objdetect/src/cascadedetect.cpp:569: error: (-2:Unspecified error) in function 'bool cv::HaarEvaluator::Feature::read(const cv::FileNode&, const Size&)'
> Invalid HAAR feature (expected: 'rw.r.x + rw.r.width <= W'), where
>     'rw.r.x + rw.r.width' is 37
> must be less than or equal to
>     'W' is 11

The above exception was the direct cause of the following exception:

SystemError                               Traceback (most recent call last)
<ipython-input-28-9384123b8097> in <module>
----> 1 eyePair_cascade = cv2.CascadeClassifier('./haar-cascade/haarcascades_haarcascade_mcs_eyepair_big.xml') #eye_pair

SystemError: <class 'cv2.CascadeClassifier'> returned a result with an error set
ghost commented 3 years ago

same error, did you find any solution?