processImage method
Processes the given image for face detection.
Implementation
Future<List<Face>> processImage(InputImage inputImage) async {
final result = await _channel.invokeListMethod<dynamic>(
'vision#startFaceDetector', <String, dynamic>{
'options': options.toJson(),
'id': id,
'imageData': inputImage.toJson(),
});
final List<Face> faces = <Face>[];
for (final dynamic json in result!) {
faces.add(Face.fromJson(json));
}
return faces;
}