process method

Future<RecognizedText?> process(
  1. InputImage image
)

Implementation

Future<RecognizedText?> process(InputImage image) async {
  try {
    final result = await channel.invokeMethod('process', <String, dynamic>{
      'image': image.json,
      'options': fromOptions(options),
    });

    if (result != null) {
      return RecognizedText.from(result);
    }
  } on PlatformException catch (e) {
    print(e.message);
    return null;
  }
}