Detect Eyeglasses

Introduction

Automatic detection of glasses on digital face images remains challenging because of different kinds of eyewear like sports glasses, frames that block the eyes, sunglasses and other variations that are not clearly distinguishable.

Recent studies revealed that wearing glasses largely affects biometric systems, especially diminishing the accuracy of iris recognition systems. Moreover, glasses introduce occlusions that can deteriorate the performance of automatic face recognition systems. The automatic recognition of eyeglasses on facial images is considered a possible solution to this problem.

Objective

This lesson shows the steps required to develop a lightweight glasses detector written in the Python programing language. To cope with the glasses detection problem, this lesson proposes an approach to investigate regions close to the eyes that are spotted in facial images, as exhibited below:

Get hands-on with 1200+ tech skills courses.