detectBuffer method

  1. @override
Future<List<DocumentResult>> detectBuffer(
  1. Uint8List bytes,
  2. int width,
  3. int height,
  4. int stride,
  5. int format,
)
override

Document edge detection. bytes - bytes of the image. width - width of the image. height - height of the image. stride - stride of the image. format - format of the image. Returns a List of DocumentResult.

Implementation

@override
Future<List<DocumentResult>> detectBuffer(
    Uint8List bytes, int width, int height, int stride, int format) async {
  List? results = await methodChannel.invokeListMethod<dynamic>(
    'detectBuffer',
    {
      'bytes': bytes,
      'width': width,
      'height': height,
      'stride': stride,
      'format': format
    },
  );

  return _resultWrapper(results);
}