Ask Your Question

Revision history [back]

Perhaps you can apply skin detection in the region of the eye that is returned by the haar cascade. If you the percent of skin pixels is greater than a threshold, then the eye is closed.

Skin detection in OpenCV: http://razibdeb.wordpress.com/2013/09/10/skin-detection-in-c-using-opencv/

Also, for detecting the eyes, you can use flandmark detector instead of OpenCV's haar cascades: http://cmp.felk.cvut.cz/~uricamic/flandmark/