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).rotation: Rotation angle in degrees (0, 90, 180, 270).
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, int rotation) async {
return _barcodeManager.decodeImageBuffer(
bytes, width, height, stride, format, rotation);
}