onStreamingData property
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: Listfps: double - Current frames per secondprocessingTimeMs: double - Processing time in millisecondsframeNumber: int - Sequential frame numbertimestamp: int - Timestamp in millisecondsoriginalImage: Uint8List? - JPEG encoded camera frame (if enabled)
Implementation
final Function(Map<String, dynamic> streamData)? onStreamingData;