FaceDetectionService class
FaceDetectionService runs predictions for face detection
Constructors
-
FaceDetectionService(Interpreter interpreter, List<
int> inputShape, List<List< outputsShapes)int> > - Creates a FaceDetectionService from interpreter containing tflite model to detect face on image.
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
- threshold → double
-
Over which confidence threshold we consider there is a face detected
final
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 from
image
whether there is face on the image -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited