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.
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.
80Compare - hand_landmarker
Real-time hand landmark detection on Android using Google MediaPipe and JNI.
54Compare
Works with
Packages commonly used together with google_mlkit_face_mesh_detection: ones it builds on, ones built on it, and its own family.
- google_mlkit_commonsgoogle_mlkit_face_mesh_detection depends on itCommon classes and utility methods for Google's ML Kit plugins
- google_mlkit_text_recognitionSame familyFlutter plugin to use Google's ML Kit Text Recognition on Android and iOS.
- google_mlkit_barcode_scanningSame familyA Flutter plugin to use Google's ML Kit Barcode Scanning on Android and iOS.
- google_mlkit_face_detectionSame familyFlutter plugin to use Google's ML Kit Face Detection on iOS and Android.
- google_mlkit_translationSame familyFlutter plugin for Google's ML Kit On-Device Translation.
- google_mlkit_selfie_segmentationSame familyFlutter plugin to use Google's ML Kit Selfie Segmentation API.
- google_mlkit_language_idSame familyDetermine the language of a text string using Google's ML Kit.
- google_mlkit_pose_detectionSame familyFlutter plugin for Google ML Kit Pose Detection on Android and iOS.