luicfrr/react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector

What it solves

It provides a way to integrate real-time and static face detection into React Native applications. It bridges the gap between the device's camera hardware and face detection capabilities, allowing developers to identify faces, facial landmarks, and contours without building the native ML logic from scratch.

How it works

The library integrates with react-native-vision-camera and leverages Google MLKit to process image frames. It can be used in three ways: as a high-level Camera component, as a camera output, or via a frame processor for more granular control. For static images, it provides a dedicated detector that accepts local files, URIs, or bundled assets.

Who it’s for

Mobile developers building React Native apps that require facial analysis, such as filters, identity verification, or interactive camera experiences.

Highlights

  • Real-time Detection: Supports both front and back cameras for live face tracking.
  • Detailed Analysis: Can detect facial landmarks, contours, and classifications (e.g., smiling or eyes open).
  • Static Image Support: Works with gallery images, local files, and network URIs.
  • Flexible Integration: Compatible with Skia Frame Processors for custom drawing and visual effects.
  • Customizable Performance: Offers a choice between "fast" and "accurate" detection modes.

Related

  • Project
  • Project
  • Project
  • Project