onPerformanceMetrics property

dynamic Function(YOLOPerformanceMetrics)? onPerformanceMetrics
final

Callback invoked with performance metrics.

This callback provides structured performance data as YOLOPerformanceMetrics objects. Use this for monitoring app performance and optimizing detection settings.

Usage: Performance monitoring, FPS display, optimization Performance: Very lightweight (~100 bytes per frame) Data: FPS, processing time, frame numbers, timestamps

Note: If onStreamingData is provided, this callback will NOT be called to avoid data duplication.

Implementation

final Function(YOLOPerformanceMetrics)? onPerformanceMetrics;