recognizeFile method
Performs OCR on an image file specified by filename
.
Returns a list of OCR results, each represented as a list of OcrLine for text regions found in the image.
Implementation
@override
Future<List<List<OcrLine>>?> recognizeFile(String filename) async {
List<dynamic>? results = await methodChannel.invokeMethod('recognizeFile', {
'filename': filename,
});
if (results == null || results.isEmpty) return [];
return _resultWrapper(results);
}