"use client" import { useState } from "react" import { UploadSection } from "@/components/upload-section" // import { SummarySection } from "@/components/summary-section" import VideoPlayerSection from "@/components/video-player-section" export type DetectionData = { video_id: string video_info: { fps: number width: number height: number total_frames: number } summary: { unique_potholes: number total_detections: number total_frames: number detection_rate: number } frames: Array<{ frame_id: number potholes: Array<{ pothole_id: number bbox: { x1: number y1: number x2: number y2: number } confidence: number }> }> } export default function PotholeDetectionPage() { const [detectionData, setDetectionData] = useState(null) const [videoFile, setVideoFile] = useState(null) return (
{/* Header */}

Pothole Detection System

Upload a video to detect and track potholes with AI-powered analysis

{/* Upload Section */}
{ setDetectionData(data) setVideoFile(file) }} />
{/* Summary Section */} {/* {detectionData && (
)} */} {/* Video Player Section */} {detectionData && videoFile && (
)}
) }