Abstract
In this paper, a modified algorithm for the detection of nasal and temporal eye corners is presented. The algorithm is a modification of the Santos and Proenka Method. In the first step, we detect the face and the eyes using classifiers based on Haar-like features. We then segment out the sclera, from the detected eye region. From the segmented sclera, we segment out an approximate eyelid contour. Eye corner candidates are obtained using Harris and Stephens corner detector. We introduce a post-pruning of the Eye corner candidates to locate the eye corners, finally. The algorithm has been tested on Yale, JAFFE databases as well as our created database.
1. Introduction
In computer vision, tracking eye movements is vital for applications ranging from driver drowsiness detection to human-computer interaction. While many systems focus on tracking the iris, the iris is inherently "unstable" as its shape and position change constantly based on gaze direction. In contrast, eye corners—specifically the nasal and temporal canthi—are fixed anatomical landmarks that provide a stable reference for tracking.
Detecting these corners is challenging because they can be obscured by the bridge of the nose, washed out by shadows, or blurred by the low resolution of standard webcams. This paper proposes a resilient pipeline designed to bridge the gap between controlled laboratory settings and real-world webcam environments.
2. Proposed Methodology
The proposed algorithm improves upon the Santos and Proenca Method through a multi-stage pipeline designed for robustness and speed.
2.1 Preprocessing and ROI Selection
To handle poor lighting, CLAHE (Contrast Limited Adaptive Histogram Equalization) is employed. Unlike standard histogram equalization, CLAHE operates on small tiles to prevent over-amplification of noise. Following enhancement, standard Haar-like feature classifiers are used to detect the face and eyes, defining a specific Region of Interest (ROI) to reduce computational search space.
2.2 Sclera Segmentation and Contour Approximation
The algorithm isolates the sclera by converting the eye image to the HSV color space. Since the sclera is the most unsaturated region, it is easily isolated via thresholding on the saturation plane. Morphological dilation is then applied to the segmented sclera to generate an approximate eyelid contour.
2.3 Corner Detection and Post-Pruning
The Harris and Stephens corner detector is applied to the eyelid contour to identify potential corner candidates. The key modification in this work is the geometric post-pruning step. Instead of local intensity filtering, the algorithm calculates distances between all candidate pairs. Recognizing that true corners are physically the most distant points on the eyelid, the pair with the maximum distance is selected as the final nasal and temporal corners.
3. Experimental Evaluation
The algorithm was evaluated on three datasets: the Yale Face Database (varying lighting), the JAFFE Database (facial expressions), and a custom IITKGP Database created using a standard webcam to simulate real-world conditions.
3.1 Results
The system demonstrates a strong balance between accuracy and efficiency:
- Accuracy: The Mean Squared Pixel Error was 4.5% on JAFFE, 6.5% on Yale, and 8.9% on the noisier IITKGP webcam dataset.
- Speed: The system achieved 16.2 fps during online testing and 20.4 fps on offline databases, making it suitable for real-time applications on consumer hardware.
4. Conclusion and Future Work
This research presents a robust, webcam-first design for eye corner detection. By utilizing saturation as a proxy for anatomy and geometric pruning for candidate selection, the algorithm achieves high accuracy even in inferior lighting conditions. Future work will explore the integration of infrared sensors for night-vision capabilities and hardware acceleration via GPU to track rapid eye movements (saccades) more precisely.
Summary updated