decodeImageBuffer method
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);
}