FaceMeshModel enum
Bundled MediaPipe face mesh (landmark) model generations for FaceMeshProcessor.create.
Values
- v1 → const FaceMeshModel
-
First-generation mesh model returning 468 landmarks (upstream
face_landmark.tflite).Combine with
enableIris: trueto run the separate iris pass and get the 478-landmark layout. - attention → const FaceMeshModel
-
Unified
face_landmark_with_attentionmodel: refines lips, eyes, and irises in a single inference and returns 478 landmarks (iris points at indices 468..477). The lowest-latency 478 option in our benchmarks. - v2 → const FaceMeshModel
-
FaceMesh-V2, the model the current upstream FaceLandmarker task uses (published there as
face_landmarks_detector.tflite): 478 landmarks with irises built in, same layout as attention. The default, and the most accurate per the upstream model cards, at some latency cost over attention (doc/BENCHMARKS.md).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
FaceMeshModel> - A constant List of the values in this enum, in order of their declaration.