Detect Faces

One of the most amazing hidden features of the camera software is the ability to detect faces. We’ve seen that access to the pixel values enables us to interpret images and make inferences about their content. Such computer vision algorithms have many applications in robotics, automation, and security. The Android face detection API is designed to trigger an event when one or more faces are detected.[140]

Facial recognition is an Android feature that uses complex computer vision algorithms to detect typical facial features, which are recognized by their shape and the position of a person’s eyes within the camera’s field of view. The Android device uses Haar cascades for face recognition.[141] The Camera app, for instance, uses ...

Get Rapid Android Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.