How maniraj48/garbage-classification works
This is a Flask waste-image classifier: a user submits an image, the application saves and preprocesses it, runs CNN inference, and presents the predicted waste category. The README also describes six-category model training and evaluation, while the notebook is present in the tree. The trained model artifact and upload directory are not listed in the tree. The README and app.py disagree about the template location; the UI relationship is shown at the route level, not as a confirmed filesystem path.
Main entry points: app.py Flask routes · index.html Classifier interface · model.ipynb CNN training
Components 8
Model development
- CNN training
model.ipynb - Trained CNN
Classification app
- Flask routes
app.py - Image preprocessing
app.py - CNN inference
app.py - Uploaded image
app.py
User interface
- Classifier interface
index.html
Other components
- User
Connections 9
- User → Flask routes: submits image
app.py - Flask routes → Classifier interface: renders page
app.py - Flask routes → Uploaded image: saves image
app.py - Flask routes → Image preprocessing: preprocesses image
app.py - Flask routes → CNN inference: calls prediction
app.py - CNN inference → Trained CNN: loads model
app.py - CNN inference → Flask routes: returns category
app.py - CNN training → Trained CNN: produces model
readme.md - Flask routes → Classifier interface: renders result
app.py