File Exchange

image thumbnail

Eyeglasses detection on face images using PCA

version (16.3 MB) by Mahmoud Afifi
Detecting the presence of eyeglasses on face images using PCA


Updated 04 Jan 2019

View License

Download the dataset from the link below, and place the following files in the root:
1- eyeGlasses-faces.mat
2- non-eyeglasses-faces.mat
Each mat file contains 1294 (227x227 pixels) images picked randomly from SoF and FERET datasets. We have used 1294 images for training and 389 images for testing. That is for each class.
To start:
-Run demo.m.
For more information, read report.pdf.
Dataset (cropped images from FEET and Sof datasets):
SoF dataset:
FERET dataset:
If you use the dataset in your work, please cite:

1- Mahmoud Afifi, Abdelrahman Abdelhamed. AFIF4: Deep Gender Classification based on AdaBoost-based Fusion of Isolated. Facial Features and Foggy Faces. arXiv:1706.04277. arXiv 2017.

2- P. J. Phillips, P. J. Rauss, and S. Z. Der, ” FERET (Face Recognition Technology) Recognition Algorithm Development and Test Results”, October 1996. Army Research Lab technical report 995.

Cite As

Mahmoud Afifi (2019). Eyeglasses detection on face images using PCA (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)



Links to the datasets were added


description updated

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux