FaceDetector class

Detector for detecting faces in an input image.

A face detector is created via faceDetector([FaceDetectorOptions options]) in GoogleVision:

final GoogleVisionImage image =
    GoogleVisionImage.fromFilePath('path/to/file');

final FaceDetector faceDetector = GoogleVision.instance.faceDetector();

final List<Faces> faces = await faceDetector.processImage(image);

Properties

hashCode int
The hash code for this object.
no setterinherited
options FaceDetectorOptions
The options for the face detector.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Release resources used by this detector.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processImage(GoogleVisionImage visionImage) Future<List<Face>>
Detects faces in the input image.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited