detect abstract method

Future<DetectionResult> detect(
  1. dynamic inputImage,
  2. ScanMode mode, {
  3. Rect? roi,
})

Detects and processes a frame from a camera image input.

inputImage — Platform-specific camera image (e.g., InputImage from ML Kit). mode — The scan mode to apply. roi — Optional region of interest (normalized 0.0–1.0 coordinates).

Returns a DetectionResult containing raw detection data.

Implementation

Future<DetectionResult> detect(
  dynamic inputImage,
  ScanMode mode, {
  Rect? roi,
});