Quick and dirty eye detection first with the Haar filter, there are good model XML files that come with opencv 2.4.2. Then you will find some skin detection (in the HSV space, not in the rgb space) to identify the middle eye area or circle search.
In addition, histogram-based projections can be used after cropping the eye area.
Barnabas szabolcs
source share