--- title: SAMADHAN - Smart Infrastructure Detection emoji: 🔍 colorFrom: blue colorTo: purple sdk: gradio sdk_version: 5.46.0 app_file: app.py pinned: false license: mit --- # 🔍 SAMADHAN - Smart Infrastructure Detection System AI-Powered Classification for Urban Infrastructure Management using YOLOv8 ## 🎯 Features - **Image Detection**: Upload images to detect and classify infrastructure objects - **Video Processing**: Process videos with real-time object detection - **Department Classification**: Automatically categorizes detections into three main departments: - 🗑️ **Garbage Department**: Container, Garbage - 🕳️ **Pothole Department**: Crocodile crack, Longitudinal crack, Pothole - 💡 **Streetlight Department**: HV-switch, Crossarm, Streetlight, Traffic-light, Transformer ## 🚀 How to Use 1. **Image Detection**: - Upload an image using the file uploader - The system automatically processes and shows detection results - View classified department and detected objects with confidence scores 2. **Video Detection**: - Upload a video file (MP4, AVI, MOV) - Click "Process Video" to analyze - Download the processed video with detection annotations ## 🛠️ Technology Stack - **AI Model**: YOLOv8 (Ultralytics) - **Frontend**: Gradio - **Backend**: Python, OpenCV - **Deployment**: Hugging Face Spaces ## 📊 Supported Objects The system can detect and classify 10 different types of infrastructure objects: - Container, Garbage - Crocodile crack, Longitudinal crack, Pothole - HV-switch, Crossarm, Streetlight, Traffic-light, Transformer ## 🎨 Interface Modern, responsive web interface with: - Professional gradient header - Department classification with emojis - Real-time processing indicators - Mobile-friendly design ## 📝 Use Cases Perfect for: - **Municipal Departments**: Automated infrastructure monitoring - **Smart Cities**: Real-time urban management - **Research**: Infrastructure analysis and planning - **Citizen Services**: Quick issue reporting and classification ## 🔧 Installation ```bash pip install -r requirements.txt python app.py ``` ## 📄 License MIT License - Feel free to use and modify for your projects! --- Built with ❤️ using YOLOv8 and Gradio | Powered by AI for Smart City Management