FaceMeshService class
FaceMeshService runs predictions for anonymized landmarks
Constructors
-
FaceMeshService(Interpreter interpreter, List<
int> inputShape, List<List< outputsShapes)int> > - Creates a FaceMeshService from interpreter containing tflite model to generate anonymized face landmarks.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputShape
↔ List<
int> -
Shape of model's input
getter/setter pair
- interpreter ↔ Interpreter
-
Tflite
Interpreter
to evaluate tflite modelgetter/setter pair - logger → Logger
-
final
-
outputsShapes
↔ List<
List< int> > -
Shapes of model's outputs
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getProcessedImage(
TensorImage inputImage) → TensorImage -
Process given
inputImage
to prepare for feeding the model -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
predict(
Image image) → Map< String, dynamic> ? -
Predicts anonymized face landmarks from
image
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited