Ask Your Question

Best method to detect eyeglasses with OpenCV

asked 2014-03-03 03:28:58 -0500

humbleAR gravatar image

Hi everyone,

I'm working on a project that involves several features related to face detection and some face information.

One of the features is detection of eyeglasses. This means that I have to make an algorithme that says YES or NO, the face is wearing glasses. I already have a face detector and eyes detectors that work well. We can see it as a detection problem or a classification problem.

I would like to have your opinion on what you consider as being a good method to solve that problem.

Than you much !

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-03-05 04:54:32 -0500

juanmanpr gravatar image

You can check this paper: They do detection and automatic removal, it may be useful.

They say:

Central to our system is a sample-based approach that learns the statistical mapping between face images with eyeglasses and their counterparts without eyeglasses. From a number of training pairs of face images with and without eyeglasses, we model their joint distribution effectively in an eigenspace spanned by all training pairs. With the learned joint distribution, given a face image with eyeglasses, we can obtain in closed form its corresponding face image without eyeglasses.

Thus, this approach would require a training database.

edit flag offensive delete link more

Question Tools


Asked: 2014-03-03 03:28:58 -0500

Seen: 4,372 times

Last updated: Mar 05 '14