Skip to content

This project focuses on detecting and reporting garbage using cameras. Notifications are sent to the municipality's web portal and workers are alerted to collect the garbage in real time. The project also includes a garbage analysis dashboard that provides valuable insights into the quantities of garbage collected from various locations.

Notifications You must be signed in to change notification settings

vishvaspatel/GARBAGE-DETECTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🚮 Smart Garbage Detection System

Garbage Detection System

💥 Introduction

Garbage collection is a challenging task that requires significant effort and manpower. This project proposes an automatic garbage detection system utilizing CCTV cameras installed on streets. The system employs deep learning models to detect garbage piles and send alerts to relevant authorities, ensuring cleaner urban environments with improved efficiency.

The project involves creating a custom dataset containing images of garbage piles and leveraging deep learning models such as YOLOv5n, YOLOv7-tiny, and YOLOv8n for accurate object detection.

💡 Why We Built This

  • Efficient Garbage Management: Reduces dependency on manual monitoring.
  • Automated Alerts: Notifies municipal authorities for prompt action.
  • Smart City Integration: Supports real-time waste management solutions.
  • Deep Learning Implementation: Enhances detection accuracy through advanced AI models.

📂 Dataset Collection and Preparation

Since no suitable public dataset containing images of garbage piles was available, we created a custom dataset with manually gathered and annotated images. The dataset preparation process includes:

  • 1000 original images collected from CCTV footage at different times of the day.
  • Manual annotation using the LabelImg tool.
  • Data Augmentation Techniques applied: Flip, Rotate (90°), Shear, Exposure, Blur, and Noise.
  • Final dataset size: 5000 images (1000 original + 4000 augmented images).

Sample Data

chaud2-p5-chaud-small chaud1-p5-chaud-small

🚀 Technologies Used

🧠 Machine Learning & AI

Technology Description
YOLO Object detection using You Only Look Once (YOLO) v5, v7, v8
R-CNN Advanced real-time object detection
Deep Learning Latest YOLO model for enhanced detection accuracy

🌍 Web Technologies

Technology Description
OpenCV Image processing and video frame analysis
Node.js Backend development & AI model deployment
React Frontend UI framework
Flask High-performance web framework for APIs
SQL Database management for storing alerts and detections

📱 Android Technologies

Technology One‑line Purpose
Kotlin Modern, null‑safe language for Android
Jetpack Compose Declarative UI toolkit (no XML)
Material 3 Ready‑made theming & components
Retrofit 2 + OkHttp Type‑safe REST client & HTTP stack
Coroutines + StateFlow Lightweight async & reactive state
ViewModel Lifecycle‑aware state holder
Navigation Compose Type‑safe in‑app navigation
Room SQLite abstraction & caching layer
Hilt Dependency injection made simple
TensorFlow Lite (opt.) On‑device ML inference
JUnit / AndroidX Test Unit & UI testing frameworks

🛠️ Local Development Setup

Ensure you have Git, Python (3.8+), and pip installed before proceeding.

1️⃣ Clone the repository:

git clone https://github.com/yourusername/Garbage-Detection.git
cd Garbage-Detection

2️⃣ Install dependencies:

pip install -r requirements.txt

3️⃣ Run the FastAPI server:

uvicorn main:app --host 0.0.0.0 --port 8000 --reload

4️⃣ Setup React Frontend:

cd frontend
npm install
npm start

🌟 Features

  • Real-time garbage detection using CCTV footage
  • Automated alert system for municipal authorities
  • AI-powered object detection with YOLO models
  • Web-based dashboard for monitoring detections
  • Historical data storage for trend analysis

🛠️ System Workflow

  1. CCTV footage is processed in real-time.
  2. Frames are extracted and passed through YOLO models.
  3. Garbage piles are detected with bounding boxes.
  4. Alerts are sent to relevant municipal authorities.

Flow Diagram

Garbage Detection System

🏗️ Methodology

Proposed Approach

This research methodology involves utilizing real-time images captured from CCTV cameras as input data. These images are used to train deep learning models, including YOLOv5, YOLOv7, and YOLOv8, which are known for their high object detection capabilities.

  • The trained model's performance is evaluated using the training dataset.
  • The model can detect garbage piles in real time.
  • If garbage is detected, an automatic alert is sent to the relevant authorities for timely action.

📊 Results

chaud t1-p5-chaud-small

Android Application for Garbage Collector

image

💻 Web Portal Interface

Login Page

WhatsApp Image 2025-02-25 at 3 37 37 PM

Analysis Dashboard

WhatsApp Image 2025-02-25 at 3 38 28 PM

Notification Page

WhatsApp Image 2025-02-25 at 3 38 02 PM

About

This project focuses on detecting and reporting garbage using cameras. Notifications are sent to the municipality's web portal and workers are alerted to collect the garbage in real time. The project also includes a garbage analysis dashboard that provides valuable insights into the quantities of garbage collected from various locations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published