MultiTaskStreamCallback typedef
Callback fired on the main thread for each inference result from one of the active YOLO tasks.
data contains:
"type":"detect"|"classify"|"segment""fps": per-task FPS"cameraFps": raw camera feed FPS"processingTimeMs": inference time in ms"detections": list of detection maps (detect / segment tasks)"classification": map withtop1,top1Confidence,top5(classify task)
Implementation
typedef MultiTaskStreamCallback = void Function(Map<String, dynamic> data);