utkarsh-23's picture
Fix README.md with proper YAML metadata
28229d1

A newer version of the Gradio SDK is available: 5.49.1

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

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