This project explores the use of computer vision for waste collection analysis on Maltese streets. The initiative involves automating the detection and classification of domestic waste bags using object detection models. By streamlining the waste detection process, this project aims to contribute towards improving waste management systems.
The work is divided into three core tasks:
- Image Capturing: Collecting images of domestic waste bags on Maltese streets while adhering to GDPR regulations.
- Dataset Construction: Creating and annotating a robust dataset for training object detection models.
- Object Detection: Training and evaluating three different object detection models (Faster R-CNN, YOLOv11, and RetinaNet).
The implementation of this project was a collaborative effort, with each team member responsible for training and evaluating a specific object detection model:
- Faster R-CNN - Jason Spiteri
- YOLOv11 - David Lee Parnis
- RetinaNet - David Farrugia
Each team member contributed to the preparation of the dataset, documentation, and analysis of model performance.
To begin, clone this repository to your local machine using the following command:
git clone https://github.com/DavidF-22/ARI3129-AdvancedCV_Project.git
It is recommended that a virtual environment be used to manage dependencies and avoid conflicts with existing Python packages. Follow these steps:
- Create a virtual environment:
On Windows:
python -m venv .venv
On Linux or Mac:
python3 -m venv .venv
- Activate the Virtual Environment
On Windows:
.venv\Scripts\activate
On Linux or Mac:
source .venv/bin/activate
- Install the Required Libraries If a requirements.txt file is available in the repository, use the following command to install dependencies:
pip install -r __path_to_requirements.txt__
If requirements.txt is unavailable or causing issues then identify the required packages from the project files and using pip or pip3 install them manually.
The dataset for this project is hosted on Roboflow. It includes annotated images of domestic waste bags in four categories:
- Mixed Waste (Black Bags)
- Organic Waste (White Bags)
- Recyclable Material (Grey Bags)
- Other Waste
To obtain the dataset:
- Visit the Roboflow Dataset and navigate to the version tab. Here you'll find the complied dataset used for this project.
- Download the dataset in the format required for training the available object detection models.
- Faster R-CNN - COCO Foramt
- YOLOv11 - YOLOv11 Format
- RetinaNet - Pascal VOC