recognizeBuffer method
MRZ detection.
bytes
- image buffer.
Returns a List of List<OcrLine>.
Implementation
Future<List<List<OcrLine>>?> recognizeBuffer(Uint8List bytes, int width,
int height, int stride, int format, int rotation) async {
final dsImage = jsify({
'bytes': bytes,
'width': width,
'height': height,
'stride': stride,
'format': format,
'orientation': rotation
});
CapturedResult capturedResult =
await handleThenable(_cvr!.capture(dsImage, modelName));
return await _resultWrapper(capturedResult.items);
}