Ask Your Question

WigglesTehPro's profile - activity

2014-03-23 14:35:22 -0600 commented question scan only the lower half of a ROI?/ ROI within an ROI?

i take that back thank-you so much! its not working yet but i nearly have it you have saved me so many hours!

2014-03-23 14:01:29 -0600 commented question scan only the lower half of a ROI?/ ROI within an ROI?

thanks for the help it just cant get it to work though keep getting an unhandled exception error, im so close to finishing what ive started haha

2014-03-23 03:42:29 -0600 commented question scan only the lower half of a ROI?/ ROI within an ROI?

Thankyou i will try later when i finish work and im using around 2000 but its not as good as i want it to be you need around 6000 to be able to pick up perfectly but i dont have the time to process that many. Plus if you do decide to train yourself i found that if you use around 7000 negative images (easy to find) gives pretty good results.

2014-03-22 17:35:57 -0600 commented question Open eyes / closed eyes in Opencv

No worries and going back to your problem have you tried to train your own classifiers one using positive images of opened eyes an one using closed eyes? then program to say if detects eye using open classifier then eyes are open and if detects eyes using closed classifier then they are closed. Hope that makes sense.

2014-03-20 18:46:13 -0600 received badge  Supporter (source)
2014-03-20 18:44:07 -0600 commented question Open eyes / closed eyes in Opencv

PS. how many positives are you using for your training? and are you making two cascades? one for open and one for closed?

2014-03-20 18:42:11 -0600 commented question Open eyes / closed eyes in Opencv

Im sorry I don't know the answer to your problem, but I was just wondering how you went about getting the eyes ROI? I am currently making a face tracking program but I am stuck getting the mouth ROI.

2014-03-20 18:33:09 -0600 asked a question scan only the lower half of a ROI?/ ROI within an ROI?

I am creating a facial tracking program that uses cascades that I have trained myself. In the code below the face is set as a ROI so the cascades that i have created only work in this area when a face is initially found. How would I go about scanning just the bottom half of the "faceROI"? (so that I can scan where a mouth would be).

face_cascade.detectMultiScale( frame_gray, faces, 1.1, 2, 0|CASCADE_SCALE_IMAGE, Size(30, 30) );


for ( size_t i = 0; i < faces.size(); i++ )
{
    Point center( faces[i].x + faces[i].width/2, faces[i].y + faces[i].height/2 );
    ellipse( frame, center, Size( faces[i].width/2, faces[i].height/2 ), 0, 0, 360, Scalar( 255, 0, 255 ), 4, 8, 0 );

    Mat faceROI = frame_gray( faces[i] );



    eyes_cascade.detectMultiScale( faceROI, eyes, 1.1, 2, 0 |CASCADE_SCALE_IMAGE, Size(30, 30) );
    nose_cascade.detectMultiScale( faceROI, nose, 1.1, 2, 0 |CASCADE_SCALE_IMAGE, Size(30, 30) );
    mouth_cascade.detectMultiScale( faceROI, mouth, 1.1, 2, 0 |CASCADE_SCALE_IMAGE, Size(30, 30) );`