How anujsoni9450/agri-vision-final works
Agri-Vision AI is a Streamlit farmer-support application. Its primary workflow is leaf-image diagnosis, followed by confidence reporting and localized treatment advice, with optional voice playback. Separate pages provide weather-based spraying guidance, farmer support links, market searches, and feedback collection. The README documents the diagnosis model and AI capabilities; the sampled pages show the other page workflows. main.py was not sampled, so its internal calls and page-dispatch behavior are not verified.
Main entry points: main.py Diagnosis dashboard · 1_Farmer_Support.py Farmer support · 3_Analysis.py Weather spraying analysis · 4_Market.py Treatment and store search
Components 17
Crop diagnosis
- Diagnosis dashboard
main.py - Fine-tuned ViT
crop_final_model
Treatment advice
- OpenAI GPT-4o Mini
- Localized treatment advice
main.py - Google Text-to-Speech
Farmer tools
- Farmer support
pages/1_Farmer_Support.py - Google Maps
- State agriculture portals
- Weather spraying analysis
pages/3_Analysis.py - Open-Meteo forecast
- Treatment and store search
pages/4_Market.py - Online retailers
Feedback and history
- Feedback form
pages/2_Feedback.py - Feedback CSV
feedback_log.csv - Scan history display
pages/3_Analysis.py - Scan history CSV
history_log.csv
Other components
- Farmer
Connections 12
- Farmer → Diagnosis dashboard: runs app
README.md - Diagnosis dashboard → Fine-tuned ViT: classifies leaves
README.md - Diagnosis dashboard → OpenAI GPT-4o Mini: requests advice
README.md - Diagnosis dashboard → Localized treatment advice: presents advice
- Diagnosis dashboard → Google Text-to-Speech: requests speech
README.md - Farmer support → Google Maps: links to
pages/1_Farmer_Support.py - Farmer support → State agriculture portals: links to
pages/1_Farmer_Support.py - Weather spraying analysis → Open-Meteo forecast: fetches forecast
pages/3_Analysis.py - Weather spraying analysis → Scan history CSV: reads history
pages/3_Analysis.py - Treatment and store search → Online retailers: links to products
pages/4_Market.py - Treatment and store search → Google Maps: searches stores
pages/4_Market.py - Feedback form → Feedback CSV: appends feedback
pages/2_Feedback.py