Skip to main content

Introduction

Welcome to react-native-mlkit-face-detection, the face detection module powered by ML Kit for React Native!

react-native-mlkit

React Native MLKit provides React Native APIs for the Swift and Kotlin versions of Google's MLKit Native Modules.

With react-native-mlkit-face-detection you can access the power and speed of native MLKit face detection in your React Native app, with a simple API built for React-Native.

Face Detection

From the MLKit Docs:

With ML Kit's face detection API, you can detect faces in an image, identify key facial features, and get the contours of detected faces. Note that the API detects faces, it does not recognize people .

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.

Face Contour Detection

From the MLKit Docs:

When you have face contour detection enabled, you also get a list of points for each facial feature that was detected. These points represent the shape of the feature.

Smiling Man with countour lines and points drawn on facial features