processImage method
Finds entities in the input image.
Implementation
Future<List<ImageLabel>> processImage(GoogleVisionImage visionImage) async {
assert(!_isClosed);
_hasBeenOpened = true;
final reply = await GoogleVision.channel.invokeListMethod<dynamic>(
'ImageLabeler#processImage',
<String, dynamic>{
'handle': _handle,
'options': <String, dynamic>{
'confidenceThreshold': _options.confidenceThreshold,
},
}..addAll(visionImage._serialize()),
);
final List<ImageLabel> labels = <ImageLabel>[];
for (final dynamic data in reply!) {
labels.add(ImageLabel._(data));
}
return labels;
}