|
|
--- |
|
|
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 |
|
|
|