How jambojuakshaya/wastedetectionapp works
WasteDetectionApp is a waste-image classification application. Its implemented web workflow is login, upload an image, request a prediction, and view the labeled result; the app uses a hard-coded login rather than the separate JSON user helpers. The repository also includes camera-frame prediction code and a dataset augmentation/training workflow. The README describes real-time image and video use, but the sampled app exposes no camera route, and the camera’s imported frame-prediction function is not present in the utils excerpt. Those links are shown only where source evidence supports them.
Main entry points: utils.py Image classifier · app.py Web routes · train_model.py Model training · camera.py Camera stream
Components 12
Web application
- Web routes
app.py - Uploaded images
- Labeled results
Vision runtime
- Image classifier
utils.py - Camera stream
camera.py
Model lifecycle
- Trained model
- Dataset augmentation
augment_data.py - Model training
train_model.py - Image dataset
User data
- User JSON
users.json - User helpers
database.py
Other components
- App user
Connections 12
- App user → Web routes: submits requests
app.py - Web routes → Uploaded images: writes upload
app.py - Web routes → Image classifier: calls detection
app.py - Image classifier → Uploaded images: reads image
utils.py - Image classifier → Trained model: loads model
utils.py - Image classifier → Labeled results: writes result
utils.py - Web routes → Labeled results: renders result
app.py - Camera stream → Image classifier: predicts frames
camera.py - Dataset augmentation → Image dataset: augments images
augment_data.py - Model training → Image dataset: loads images
train_model.py - Model training → Trained model: saves model
train_model.py - User helpers → User JSON: reads and writes
database.py