/** * YOLO Output Processor * * Processes raw YOLOv8 TFLite model output into detection results. * YOLOv8 output format: [1, 84, 8400] where: * - 84 = 4 (bbox) + 80 (class scores for COCO) * - 8400 = number of predictions (from 3 detection heads) * * For custom models with N classes: [1, 4+N, 8400] */ export interface RawDetection { x: number; y: number; width: number; height: number; classIndex: number; confidence: number; } export interface ProcessedDetection { x: number; y: number; width: number; height: number; classIndex: number; confidence: number; } /** * Process YOLOv8 model output into detections * * @param output Raw model output as Float32Array * @param numClasses Number of classes in the model * @param confThreshold Minimum confidence threshold (0-1) * @param iouThreshold IoU threshold for NMS (0-1) * @returns Array of processed detections */ export declare function processYoloOutput(output: Float32Array, numClasses: number, confThreshold?: number, iouThreshold?: number): ProcessedDetection[]; /** * Scale detection coordinates to actual image dimensions */ export declare function scaleDetections(detections: ProcessedDetection[], modelSize: number, imageWidth: number, imageHeight: number): ProcessedDetection[]; //# sourceMappingURL=yoloProcessor.d.ts.map