How abhinavadeep/agriwaste works
This is a farmer agricultural-waste submission and admin-review application. Farmers register or sign in, upload a waste image, and receive detected waste types and indicative prices. The backend stores submissions for admins to inspect, approve or reject; approval updates status and attempts an SMS notification. The frontend also derives waste-count analytics from submissions. Source excerpts show the browser and backend workflows, but no README or frontend HTML was provided, so page wiring beyond the named entry pages is not inferred.
Main entry points: script.js Browser workflows · app.py Submission review routes · admin.html Admin pages · farmer.html Farmer pages
Components 14
Web application
- Farmer pages
Frontend/farmer.html - Admin pages
Frontend/admin.html - Browser workflows
Frontend/script.js - Farmer registration and login
Frontend/script.js - Admin registration and login
Frontend/script.js - Waste-count analytics
Frontend/script.js
Submission backend
- Image detection route
Backend/app.py - Submission review routes
Backend/app.py
Models and services
- Waste price table
Backend/waste_prices.py - YOLO model
Backend/best.pt - Submission store
- SMS service
Other components
- Farmer
- Admin
Connections 21
- Farmer → Farmer pages: uses
- Admin → Admin pages: uses
- Farmer pages → Farmer registration and login: registers or signs in
- Admin pages → Admin registration and login: registers or signs in
- Farmer registration and login → Browser workflows: stores session
- Admin registration and login → Browser workflows: stores session
- Farmer pages → Browser workflows: uploads image
- Browser workflows → Image detection route: posts image and details
- Image detection route → YOLO model: runs inference
- Image detection route → Waste price table: looks up prices
- Image detection route → Submission store: inserts submission
- Image detection route → Browser workflows: returns detections and prices
- Admin pages → Browser workflows: requests review data
- Browser workflows → Submission review routes: fetches submissions
- Submission review routes → Submission store: reads submissions
- Submission review routes → Browser workflows: returns submissions
- Browser workflows → Submission review routes: posts approval or rejection
- Submission review routes → Submission store: updates or deletes
- Submission review routes → SMS service: sends approval SMS
- Admin pages → Waste-count analytics: views analytics
- Waste-count analytics → Submission review routes: fetches submissions