Skip to content
pubscout

google_mlkit_face_mesh_detection

0.7.3, released 8 days ago by flutter-ml.dev

Flutter plugin for Google's ML Kit Face Mesh Detection to generate 3D face meshes.

$ flutter pub add google_mlkit_face_mesh_detection
Source repository

What it does

A Flutter plugin that uses Google's ML Kit to generate real-time high-accuracy 3D face meshes with 468 points from selfie-like images. It acts as a bridge to native platform APIs via platform channels.

AI-written summary of version 0.7.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to build augmented reality or face filtering features requiring a dense 3D face mesh.
  • You are processing selfie-like images where faces are within ~2 meters of the camera.

Skip it when

  • You need face detection for subjects further than 2 meters away from the camera.
  • You are targeting web or platforms other than Android and iOS.

Strengths

  • Provides high-accuracy 3D face meshes of 468 points.
  • Asynchronous processing via platform channels keeps the UI responsive.

Weaknesses

  • Feature is still in Beta and faces some platform limitations (e.g., iOS support status notes).
  • No processing is done in Dart; it depends entirely on native Google ML Kit implementations.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
1

Requires Android minSdkVersion 21, compile/targetSdkVersion 36. For iOS apps using Swift Package Manager, the deployment target must be at least 15.0.

final meshDetector = FaceMeshDetector(option: FaceMeshDetectorOptions.faceMesh);
final List<FaceMesh> meshes = await meshDetector.processImage(inputImage);
meshDetector.close();

Alternatives

Packages that do the same job and could replace google_mlkit_face_mesh_detection.

  • face_detection_tflite

    Advanced face & landmark detection, embedding and segmentation using on-device LiteRT (formerly TensorFlow Lite) models.

  • hand_landmarker

    Real-time hand landmark detection on Android using Google MediaPipe and JNI.

Works with

Packages commonly used together with google_mlkit_face_mesh_detection: ones it builds on, ones built on it, and its own family.