FaceMesh class
468-point face mesh with optional depth information.
Constructors
-
FaceMesh(List<
Point> points, {double? score}) - Creates a face mesh from 468 points.
-
FaceMesh.fromMap(Map<
String, dynamic> map) -
Creates a face mesh from a map.
factory
- FaceMesh.packed(Float32List xyz, {double? score})
-
Creates a face mesh from packed
x,y,zfloat triples without building Point objects. They are materialized lazily on first access to points (or [] / toMap), so callers that never read the mesh, or that only read other face fields, skip 468 allocations entirely.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
Number of points in the mesh (always 468).
no setter
-
points
→ List<
Point> -
The 468 mesh points with depth.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double?
-
Face-presence confidence from the mesh model, 0.0 to 1.0 (higher is more
confident the crop is a face). Null when the model does not report it.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Converts this mesh to a map for isolate serialization.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
int index) → Point - Returns the point at the given index.