TrashVision
A downloadable tool
TrashVision: An AI-Powered Trash Recognition System
TrashVision is an innovative application that utilizes advanced image recognition technology to identify and categorize various types of trash, empowering users to make a positive impact on the environment. By seamlessly recognizing different types of waste through device cameras, TrashVision revolutionizes waste management practices, contributing to a cleaner and greener planet.
Features
- Upload images of trash for instant recognition and categorization.
- Effortlessly identify plastic, paper, glass, and other types of waste.
- Simple and intuitive user interface for seamless interaction.
- Utilizes Roboflow's image recognition model for accurate predictions.
Dependencies
- Python 3.x
- Flask
- Flask-CORS
- Roboflow >= 0.1.0
- Roboflow API key (already provided)
Download
Download
TrashVision.zip 5 MB
Install instructions
Installation Instructions
Setup
- Install the latest version of python
- Install the Pycharm Community Edition IDE
- Create a new (empty) Pycharm project in a folder called "TrashVision"
- Download the
TrashVision.zipfile, and extract all contents into the TrashVision folder - Install the required Python packages using the following commands:
pip install flaskpip install flask_corspip install roboflow
- Ensure that the
user_uploadsdirectory exists in the project directory.
Usage
- Run the
main.pyfile by opening it in Pycharm and pressingAlt+Shift+10or clicking the icon in the top rigt corner. - Open
interface.htmlin your preferred web browser. - Place the image you want to analye in any directory other than the
user_uploadsfolder (DesktoporDownloadsis a good option).> Make sure there is no
prediction.jpgfile present before doing the image analysis. If there is, please remove it, since the program may behave unexpectedly.
> Recommended Resolution: 1280x720
- Click the "Choose File" button and select the image inside the
user_uploadsfolder. - Click the "Upload Image" button to submit the image for analysis.
> Make sure that the image you want analyzed is not inside the
user_uploadsdirectory. <-IMPORTANT - The application will display the analyzed image below the upload field shortly after.
Important Notes
- Ensure that the
user_uploadsfolder exists and is accessible to the application. - Images should be well-lit and clearly show the trash item for accurate recognition.
- If there is an existing
prediction.jpgfile in theuser_uploadsdirectory, remove it before doing the image analysis.
Disclaimer
- This project is developed as a proof of concept and may require further refinement for production use.
- The accuracy of trash recognition may vary alot based on the quality of the input image and the model's training data.
- The
Report a Bugbutton does not work as expected at the moment.

Leave a comment
Log in with itch.io to leave a comment.