recognizeByBuffer method

Future<List<List<MrzLine>>?> recognizeByBuffer(
  1. Uint8List bytes,
  2. int width,
  3. int height,
  4. int stride,
  5. int format,
)

MRZ detection. bytes - image buffer. Returns a List of List<MrzLine>.

Implementation

Future<List<List<MrzLine>>?> recognizeByBuffer(
    Uint8List bytes, int width, int height, int stride, int format) async {
  if (_recognizer != null) {
    List<dynamic> results = await handleThenable(
        _recognizer!.recognizeBuffer(bytes, width, height, stride, format));
    return _resultWrapper(results);
  }

  return [];
}