OpenCV Issues - Eyes Cascade and Face Cascade [closed]

1

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.

    
asked by anonymous 10.09.2015 / 18:44

0 answers