Face Recognition and Face Detection Using Open Computer Vision Classifiers and Python

Face Recognition and Face Detection Using Open Computer Vision Classifiers and Python

Priyank Jain, Meenu Chawla, Sanskar Sahu
Copyright: © 2021 |Pages: 23
DOI: 10.4018/978-1-7998-4963-6.ch009
OnDemand:
(Individual Chapters)
Available
$37.50
No Current Special Offers
TOTAL SAVINGS: $37.50

Abstract

Identification of a person by looking at the image is really a topic of interest in this modern world. There are many different ways by which this can be achieved. This research work describes various technologies available in the open-computer-vision (OpenCV) library and methodology to implement them using Python. To detect the face Haar Cascade are used, and for the recognition of face eigenfaces, fisherfaces, and local binary pattern, histograms has been used. Also, the results shown are followed by a discussion of encountered challenges and also the solution of the challenges.
Chapter Preview
Top

3. Face Detection Using Haar-Cascades

A mathematical function that produces square-shaped waves with a beginning and an end and used to create box shaped patterns to recognise signals with sudden transformations is called Haar wavelet as shown in an example in figure 1. A cascade can be created by combining several wavelets and that cascade can easily and efficiently identify edges, lines and circles with different colour intensities. These sets are used in Viola Jones face detection technique in 2001 and since then more patterns are introduced for object detection as shown in figure 1. To analyse an image using Haar cascades, target image is identified and a scale is selected smaller than the that image. The scale is then placed on the image. Then the average of the values of pixels in each section of the image is taken. A match is considered if the difference between two values is above a given threshold value. Face detection on a human face is performed similarly by matching a combination of different Haar like features. For example, forehead, eyebrows and eyes contrast as well as the nose with eyes as shown below in figure 2. Accurate face detection cannot be achieved by a single classifier, various different classifiers are combined to get an accurate result as shown in the block diagram in figure 3.

Figure 1.

A Haar wavelet followed by resulting Haar like features

978-1-7998-4963-6.ch009.f01

Complete Chapter List

Search this Book:
Reset