With ML Kit's face detection API, you can detect faces in an image and identify key facial features.
With face detection, you can get the information you need to perform tasks like embellishing selfies and portraits, or generating avatars from a user's photo. Because ML Kit can perform face detection in real time, you can use it in applications like video chat or games that respond to the player's expressions.
|Recognize and locate facial features||Get the coordinates of the eyes, ears, cheeks, nose, and mouth of every face detected.|
|Recognize facial expressions||Determine whether a person is smiling or has their eyes closed.|
|Track faces across video frames||Get an identifier for each individual person's face that is detected. This identifier is consistent across invocations, so you can, for example, perform image manipulation on a particular person in a video stream.|
|Process video frames in real time||Face detection is performed on the device, and is fast enough to be used in real-time applications, such as video manipulation.|
For each face detected:
|Face 1 of 3|
|Bounding polygon||(884.880004882812, 149.546676635742), (1030.77197265625, 149.546676635742), (1030.77197265625, 329.660278320312), (884.880004882812, 329.660278320312)|
|Angles of rotation||Y: -14.054030418395996, Z: -55.007488250732422|