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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.