detectBytes abstract method

Future<DetectionResult> detectBytes(
  1. Uint8List bytes,
  2. int width,
  3. int height,
  4. ScanMode mode,
)

Detects and processes a raw byte buffer.

bytes — Raw image bytes (grayscale or RGBA depending on detector). width, height — Image dimensions. mode — The scan mode to apply.

Returns a DetectionResult containing raw detection data.

Implementation

Future<DetectionResult> detectBytes(
  Uint8List bytes,
  int width,
  int height,
  ScanMode mode,
);