Ask Your Question

enrique's profile - activity

2016-12-02 14:33:26 -0600 received badge  Famous Question (source)
2015-11-25 14:03:38 -0600 received badge  Notable Question (source)
2015-06-27 21:00:28 -0600 received badge  Popular Question (source)
2014-03-27 17:50:28 -0600 commented question scan only the lower half of a ROI?/ ROI within an ROI?

How did you manage to set the parameters for the training? how are related the number of positive and negative images? and how are these related to the number of stages? Happy to help you ;)

2014-03-27 17:46:16 -0600 asked a question Train Haar classifier for open/closed eyes

Hi,

I am working in a Haar classifier for open/closed eyes. So far I have 700 unique positive images and 4000 negative images. From the 700 positive images I create 15000 changing rotation, brightness and contrast. I think this amount of images is enough for a good classifier, am I right?

The main problem is that I am not getting the expected results as I dont really understand how the parameters work. Which is the relation between the number of positive and negative images? How is that also related to the number of stages?

By the way, does anybody know about some good tutorial on this?? Really appreciated any help.

2014-03-22 18:08:16 -0600 commented question scan only the lower half of a ROI?/ ROI within an ROI?

By the way, how many positive and negative images did you use? I am really interested in training a classifier for eyes, but I am having some issues

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

Maybe it is obvious what I am saying here, but why dont you do the same you did to create the faceROI Mat? If you know that your mouth should appear on the lower half of your face, you can do:

Rect mouth_rect (faces[i].x, faces[i].y+faces[i].height/2, faces[i].width, faces[i].height/2); Mat mouthROI (faceROI(mouth_rect) mouth_cascade.detectMultiScale( mouthROI, mouth, 1.1, 2, 0 |CASCADE_SCALE_IMAGE, Size(30, 30) );

Hope that makes sense.

2014-03-22 17:56:25 -0600 commented question Open eyes / closed eyes in Opencv

Hi again, yes I tried doing that, but unfortunately it is not that simple and I not getting it to work as I would like. This is why I was looking for alternatives. Really appreciated your help though.

2014-03-22 03:37:34 -0600 commented question Open eyes / closed eyes in Opencv

Sorry, didnt see your replies before. I am getting eyes, nose and mouth with a Haar classifiers. The one that is built-in in Opencv works fine for that. What detectMultiScale returns is the ROI (Rect in Opencv).

2014-03-20 18:46:13 -0600 received badge  Student (source)
2014-03-20 16:35:43 -0600 asked a question Open eyes / closed eyes in Opencv

Hi,

I am working on a application able to get a face from a picture and say if the eyes are open or closed. For now, with Haar cascades from Opencv, getting the face ROI and even the eyes ROI is an easy task, but I am struggling on how to distinguish between open and closed eyes.

What I have tried so far is the in-built Haar classifiers in Opencv, but is detecting eyes in general, either they are open or closed. I also tried to train my own Haar cascade, but dont have really clear the process and the results I get are not good enough.

Somebody who has gone this way? Any ideas around?

Thanks in advance!