[back]

MATLAB Code for the "Enhanced Pictorial Structures for Precise Eye Localization under Uncontrolled Conditions".

Code Package:

The folder "eyedetector" contains all the functions implemented in this package. It has the following subfolders:
\amfg07       Codes for illumination normalization [2];
\LibSVM        The Mex files of LIBSVM [3];
\matFile        The trained models;
\rountines     Source files for eye localization;
\face             Some face images for testing;
\picShow       Showing the localization results.

The 'demo.m' provides the example showing how to using this code. We assume that the input image is the output of a face dector like Viola&Jones [4], with a nearly frontal face in the center. Please see the '\face' folder for some typical input images. Some results of eye localization are shown below.

Please note that this code was not the one used in the experiments reported in the paper, nor are the default parametrs necessarily the same as the ones we used. Please report any bugs or problems to {x.tan, f.song}@nuaa.edu.cn.

Usage:

>> I = imread(...);
>> I = rgb2gray(I);
>> I = imresize(I, [100, 100], 'bilinear');
>> [x, y, score] = svm_filtering_2(I);
>> best_hypothesis = structureInfoVerify(x, y, core);
>> Leye_coor = [x{1}(best_hypothesis(1)), y{1}(best_hypothesis(1)]
>> Reye_coor = [x{2}(best_hypothesis(2)), y{2}(best_hypothesis(2))]

How to get it?

Please follow this link to download the code (64MByes).

Also, the annotation data used in [1] can be downloaded here.

References:

[1] X.Tan, S.Song, Z-H.Zhou and S.Chen. Enhanced Pictorial Structures for Precise Eye Localization under Uncontrolled Conditions, In: Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'09),pp. 1621–1628, Miami, Florida, USA, June 2009.

[2] X.Tan and B.Triggs. Enhanced Local Texture Feature Sets for Face Recognition under Difficult Lighting Conditions, In: Proceedings of the 2007 IEEE International Workshop on Analysis and Modeling of Faces and Gestures (AMFG'07), LNCS 4778, pp.168-182, 2007.

[3] C.-C. Chang and C.-J. Lin. LIBSVM : a library for support vector machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1-27:27, 2011.

[4] P.Viola and M.J.Jones. Robust real-time face detection. International Journal of Computer Vision (IJCV), 57(2):137-154, 2004.

Copyright and disclaimer:

Copyright 2009, Xiaoyang Tan

The SOFTWARE is provided "as is", without any guarantee made as to its suitability or fitness for any particular use. It may contain bugs, so use of this tool is at your own risk. We take no responsibility for any damage that may unintentionally be caused through its use.