decodeImageBuffer method

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

Decodes barcodes from an image buffer.

  • bytes: The raw image data.
  • width: The width of the image.
  • height: The height of the image.
  • stride: The number of bytes per row.
  • format: The pixel format (see ImagePixelFormat).

Typically used for real-time barcode scanning from a camera stream.

Returns a list of detected barcodes.

Implementation

Future<List<Map<dynamic, dynamic>>> decodeImageBuffer(
    Uint8List bytes, int width, int height, int stride, int format) async {
  return _barcodeManager.decodeImageBuffer(
      bytes, width, height, stride, format);
}