File size: 2,318 Bytes
3f9a142
6f88fe0
2630721
 
 
 
 
 
 
 
3f9a142
 
6f88fe0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28229d1
 
6f88fe0
28229d1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6f88fe0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
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