recognizeByFile method

  1. @override
Future<List<List<MrzLine>>?> recognizeByFile(
  1. String filename
)
override

Do OCR by file. Returns a List<List<MrzLine>> containing the OCR results.

Implementation

@override
Future<List<List<MrzLine>>?> recognizeByFile(String filename) async {
  List<dynamic>? results =
      await methodChannel.invokeMethod('recognizeByFile', {
    'filename': filename,
  });

  if (results == null || results.isEmpty) return [];

  return _resultWrapper(results);
}