scanImageBytes method

  1. @override
Future<Map> scanImageBytes(
  1. Uint8List bytes, {
  2. String? modelId,
})
override

Scan raw image bytes. Default throws.

Implementation

@override
Future<Map<dynamic, dynamic>> scanImageBytes(Uint8List bytes,
    {String? modelId}) async {
  final result = await _methodChannel.invokeMapMethod<dynamic, dynamic>(
    'scanBytes',
    {'bytes': bytes, if (modelId != null) 'modelId': modelId},
  );
  return result ?? {};
}