faceDetection method
Future<List<FaceAnnotation> >
faceDetection(
- JsonImage jsonImage, {
- int maxResults = 10,
inherited
Face Detection detects multiple faces within an image along with the associated key facial attributes such as emotional state or wearing headwear.
Implementation
Future<List<FaceAnnotation>> faceDetection(
JsonImage jsonImage, {
int maxResults = 10,
}) async {
final annotatedResponses = await detection(
jsonImage,
AnnotationType.faceDetection,
maxResults: maxResults,
);
return annotatedResponses.faceAnnotations;
}