<< Chapter < Page Chapter >> Page >
Algorithm used for ELEC301 Viola-Jones-based facial detection and feature recognition project. This module is part of a collection.

In a standard 19x19 pixel sub-window, there are a lot of possible features, in this case we are only using 500 of them since it would be prohibitively expensive to evaluate them all. Thus, the object detection framework employs a variant of the learning algorithm adaptive boosting to both select the best features and to train classifiers that use them.

Example

A dog sitting on a bed
Example features in Viola-Jones
Viola-Jones closely resembles Haar basis function because it operates by summing the pixel values in rectangular areas of the image and then comparing the difference between the summations in the black and white triangles to the training data. It allows for possible detection of different sizes of faces by having a rectangular window detector that moves across the picture. The detector is capable of detecting faces, and its size changes with each scan. For the algorithm we use in the project, we can manually adjust the scaling depending on the size of the image. Unlike other facial recognition algorithms, which scale the picture each time and runs it through the detector, Viola-Jones scales the detector, allowing for faster calculation.The Viola-Jones calculation also contains a training data of faces and non-faces. For the algorithm that we use in this project, we have 2000 faces and 4000 non-faces in the training data.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Face detection and feature recognition. OpenStax CNX. Dec 14, 2010 Download for free at http://cnx.org/content/col11250/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Face detection and feature recognition' conversation and receive update notifications?

Ask