This project uses YOLOv8 to detect overflowing garbage bins and send alerts. It processes video feeds in real-time using a trained object detection model.
✅ Detects garbage bins and identifies overflowing waste.
✅ Uses YOLOv8 for object detection.
✅ Processes video feeds from webcams or CCTV cameras.
✅ Can be integrated with alert systems (SMS, notifications).
git clone https://github.com/yourusername/garbage-overflow-detection.git
cd garbage-overflow-detectionEnsure you have Python 3.8+ installed, then run:
pip install -r requirements.txtWe use Roboflow to manage datasets. To download, first install the API:
pip install roboflow ultralytics opencv-python matplotlibThen, modify waste_detection.py with your Roboflow API key and dataset details.
from roboflow import Roboflow
rf = Roboflow(api_key="YOUR_API_KEY")
project = rf.workspace().project("YOUR_PROJECT_NAME")
dataset = project.version("1").download("yolov8")Run the YOLOv8 model on your webcam or video feed:
python waste_detection.py- Captures video from your webcam (or file).
- Runs YOLOv8 object detection on each frame.
- Identifies overflowing garbage bins.
- Displays detections and highlights full bins.
Want to make it better? Try these:
✨ Train a custom YOLOv8 model with more images.
🔗 Integrate SMS/email alerts when bins overflow.
🌡️ Deploy on a Raspberry Pi for real-world use.
Got ideas or improvements? Feel free to fork this repo, make changes, and submit a pull request!
This project is open-source under the MIT License. Feel free to use and improve it!