An AI-powered Real-Time Waste Detector using Streamlit & TensorFlow
Garbage Classifier is a smart web application built with Streamlit, allowing users to classify waste in real time using a trained Keras deep learning model. Whether it's a biodegradable or non-biodegradable, this app helps promote sustainable waste segregation with the power of machine learning and computer vision.
✅ Real-time Waste Detection – Upload an image or capture live to detect the type of waste.
✅ Built with Deep Learning – Uses a trained Keras model for high accuracy waste classification.
✅ Clean Streamlit Interface – Simple and intuitive UI for ease of use.
✅ Instant Feedback – Get classification results immediately upon uploading.
✅ Lightweight Deployment – Easily deployable on Streamlit Cloud.
- Frontend & Deployment: Streamlit
- Backend: Python
- Deep Learning: TensorFlow / Keras
- Libraries: NumPy, PIL, TensorFlow, Streamlit
- Model File:
keras_model_fixed.h5
git clone https://github.com/mohammadhashim135/Garbage-Classifier.git
cd your-repo-namepython -m venv .venv
# Activate it
# Windows:
.venv\Scripts\activate
# Mac/Linux:
source .venv/bin/activatepython -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activatestreamlit run app.py
🔹 Click Browse Files or Use Camera to upload an image of the waste.
🔹 The model predicts whether the waste is Biodegradable or Non-Biodegradable.
🔹 View the prediction and take action accordingly.
🔹 You can re-upload to classify more waste.
Garbage-Classifier/
│
├── Glass/ # Folder containing glass waste
│ ├── glass1.png
│ ├── glass2.png
│ ├── ...
├── Plastic/ # Folder containing plastic waste
│ ├── plastic1.png
│ ├── plastic.png
│ ├── ...
├── app.py # Main Streamlit app file
├── keras_model_fixed.h5 # Pre-trained model for waste classification
├── labels.txt # Class labels for the model
├── sustainable_dev_goal/ # Folder containing SDG icons
│ ├── 12.png
│ ├── 13.png
│ ├── ...
└── requirements.txt # Python package dependencies
Contributions are welcome! If you’d like to improve LetMeCut, feel free to fork the repo and submit a pull request.
Fork the repository
git checkout -b feature-branchgit commit -m "Added new feature"git push origin feature-branchThis project is licensed under the MIT License.
💡 Developed with ❤️ by Mohammad Hashim

