Hello! All right? I am doing a program in C ++ with OpenCV and when running the error appears below
This is the error that is occurring without try-catch
Thisistheerrorthatisoccurringwithtry-catch
intdetectEye(Mat&im,Mat&tpl,Rect&rect){vector<cv::Rect>faces,eyes;face_cascade.detectMultiScale(im,faces,1.1,2,CV_HAAR_SCALE_IMAGE,cv::Size(30,30));for(inti=0;i<faces.size();i++){Matface=im(faces[i]);eyes_cascade.detectMultiScale(face,eyes,1.1,2,CV_HAAR_SCALE_IMAGE,Size(20,20));if(eyes.size()){rect=eyes[0]+Point(faces[i].x,faces[i].y);tpl=im(rect);}}returneyes.size();}
Iwasdebuggingandhethrewtheexceptioninthisexcerpt:face_cascade.detectMultiScale(im,faces,1.1,2,CV_HAAR_SCALE_IMAGE,cv::Size(30,30));
Debugscreen
Any additional information just ask. Thank you in advance.