darrikmazey / libgesture

gesture library for libfreenect
5 stars 1 forks source link

Programm crashes after face detected #1

Open leonharv opened 12 years ago

leonharv commented 12 years ago

Hi, The programm crashes after an face is detected. the error is: "FaceDetector::detect(image, face (170, 85)) OpenCV Error: Assertion failed (0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows) in Mat, file /build/src/OpenCV-2.3.1/modules/core/src/matrix.cpp, line 303 terminate called after throwing an instance of 'cv::Exception' what(): /build/src/OpenCV-2.3.1/modules/core/src/matrix.cpp:303: error: (-215) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function Mat"

If the programm don't find the haarcascade-file, no errors where found, but also no faces. I hope, this is usefull for you.

//EDIT: I maybe found a solution. But i don't know, where to insert this. http://stackoverflow.com/questions/7755647/opencv-extract-area-of-an-image-from-a-vector-of-squares

empty16 commented 8 years ago

@leonharv ,I got this problem too , have U solved this problem?

leonharv commented 8 years ago

If you look at the date, I posted this issue 4 years ago. I can barely remember what project this was and how I solved this. I think I didn't used this library at all.