process method
Implementation
Future<List<Label>> process(InputImage image) async {
try {
List labels = await channel.invokeMethod('process', <String, dynamic>{
'image': image.json,
'confidenceThreshold': confidenceThreshold,
});
return labels.map((label) => Label.from(label)).toList();
} on PlatformException catch (e) {
print(e.message);
}
return [];
}