EcoSense is a project aimed at identifying instances of public littering or waste disposal in public spaces. Using the YOLOv5 object detection model, this system can detect when individuals litter and provide details such as the time of the littering event in sample videos. The ultimate goal is to implement this system in CCTV cameras to create a cleaner environment and raise awareness about the importance of not littering in public places.
Gist Link : Click here
Colab link : Click here
-
Open the Colab notebook in Google Colab.
-
The notebook will first download sample videos for demonstration purposes.
-
Next, it will install the required Python libraries and download the YOLOv5 model.
-
A function is defined to display the available sample videos to the user in an HTML window.
-
You can then select a video from the list displayed.
-
The main function will process the selected video and identify instances of littering, providing timestamps for each event.
-
The results will be displayed in the notebook, showing the detected instances of littering along with the corresponding timestamps.
sample videos (video_!.mp4
) to (video_9.mp4
) is provided in the Colab notebook for testing purposes. You can select one of the video to see how the detection works.
The notebook will output the detected instances of littering along with the corresponding timestamps. You can find this information displayed directly in the notebook after running the detection on the selected video.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the developers of YOLOv5 for their excellent object detection model.
Special thanks to my friend, Sharun Ashwanth, for their invaluable support and encouragement throughout the development of EcoSense.