Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you don't want to locate eyes, you can for example use cv::matchTemplate() function. Your reference template will be an average face image. However, do you have any special reason why you don't want to locate eyes? the Haar detectors haarcascade_lefteye_2splits.xml and haarcascade_righteye_2splits.xml from opencv sample cascade classifiers work quite good for me. The further proper alignment based on the detected eyes is really easy.