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.zip
file, and extract all contents into the TrashVision folder - Install the required Python packages using the following commands:
pip install flask
pip install flask_cors
pip install roboflow
- Ensure that the
user_uploads
directory exists in the project directory.
Usage
- Run the
main.py
file by opening it in Pycharm and pressingAlt+Shift+10
or clicking the icon in the top rigt corner. - Open
interface.html
in your preferred web browser. - Place the image you want to analye in any directory other than the
user_uploads
folder (Desktop
orDownloads
is a good option).> Make sure there is no
prediction.jpg
file 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_uploads
folder. - Click the "Upload Image" button to submit the image for analysis.
> Make sure that the image you want analyzed is not inside the
user_uploads
directory. <-IMPORTANT - The application will display the analyzed image below the upload field shortly after.
Important Notes
- Ensure that the
user_uploads
folder 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.jpg
file in theuser_uploads
directory, 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 Bug
button does not work as expected at the moment.
Leave a comment
Log in with itch.io to leave a comment.