onStreamingData property

dynamic Function(Map<String, dynamic> streamData)? onStreamingData
final

Callback invoked with comprehensive raw streaming data.

This callback provides access to ALL available YOLO data including advanced features like segmentation masks, pose keypoints, oriented bounding boxes, and original camera frames.

Usage: Advanced AI/ML applications, research, debugging, custom processing Performance: Heavy (~100KB-10MB per frame depending on configuration) Data: Everything from onResult + onPerformanceMetrics + advanced features

IMPORTANT: When this callback is provided, onResult and onPerformanceMetrics will NOT be called to prevent data duplication and improve performance.

Available data keys:

  • detections: List
  • fps: double - Current frames per second
  • processingTimeMs: double - Processing time in milliseconds
  • frameNumber: int - Sequential frame number
  • timestamp: int - Timestamp in milliseconds
  • originalImage: Uint8List? - JPEG encoded camera frame (if enabled)

Implementation

final Function(Map<String, dynamic> streamData)? onStreamingData;