FaceDetectorService class
Main Face Detection Service using Google ML Kit and FaceNet TFLite
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
detectFaces(
InputImage inputImage) → Future< List< FaceDetectionResult> > - Detect faces from an InputImage
-
dispose(
) → void - Dispose the detector
-
initialize(
) → Future< void> - Initialize the face detector and FaceNet model
-
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
Static Methods
-
compareFaces(
Float64List embedding1, Float64List embedding2) → FaceComparisonResult - Compare two face embeddings using Euclidean distance (FaceNet standard) For normalized embeddings, Euclidean distance and cosine similarity are related: Euclidean distance = sqrt(2 * (1 - cosine_similarity))