process method

Future<List<Label>> process(
  1. InputImage image
)

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 [];
}