export interface BoundingBox {
  x1: number;
  y1: number;
  x2: number;
  y2: number;
}

export interface DetectionResult {
  bunch_id: number;
  class: string;
  confidence: number;
  is_health_alert: boolean;
  box: [number, number, number, number];      // Absolute pixels [x1, y1, x2, y2]
  norm_box: [number, number, number, number]; // Normalized percentages [x1, y1, x2, y2]
}

export interface IndustrialSummary {
  [className: string]: number;
}

export interface AnalysisResponse {
  status: string;
  current_threshold: number;
  total_count: number;
  industrial_summary: IndustrialSummary;
  detections: DetectionResult[];
  image_data?: string;
  inference_ms: number;
  processing_ms: number;
  archive_id: string;
  raw_tensor_sample: number[][];
}
