How prajwal-praju01/agropro---ai-powered-smart-agricultural-advisory-platform works
AgroPro is a Flask agricultural decision-support platform for farmers. The main workflow is a farmer submitting crop, soil, image, or farm-planning inputs through the web interface; Flask routes dispatch to prediction or advisory logic and return results in templates. The README documents crop, disease, fertilizer, yield, price, and irrigation tools, plus weather, schemes, and authentication. Source excerpts are partial, so several route implementations and integrations are represented only at the app boundary; undocumented persistence and uncertain call wiring are omitted.
Main entry points: app.py Flask routes · model.py Image classifier · smart_assistant.py Smart assistant · nlp_assistant.py Rule-based Q&A
Components 20
Web interface
- Flask routes
app.py - Page templates
templates
Farm decisions
- Crop recommendation
app.py - Crop model artifacts
models - Fertilizer advisor
app.py - Nutrient guidance
utils/fertilizer.py - Yield prediction
app.py - Price prediction
app.py - Irrigation advice
app.py
Field insights
- Disease detection
app.py - Image classifier
utils/model.py - Disease model files
models - Disease guidance
utils/disease.py - Satellite analysis
app.py - Weather forecast
app.py
Farmer support
- Smart assistant
utils/smart_assistant.py - Rule-based Q&A
utils/nlp_assistant.py - Farm services
app.py
Other components
- Farmer
- OpenWeatherMap
Connections 20
- Farmer → Flask routes: submits request
- Flask routes → Page templates: renders pages
- Flask routes → Crop recommendation: dispatches input
- Crop recommendation → Crop model artifacts: loads artifacts
- Flask routes → Fertilizer advisor: dispatches input
- Fertilizer advisor → Nutrient guidance: uses guidance
- Flask routes → Yield prediction: dispatches input
- Flask routes → Price prediction: dispatches input
- Flask routes → Irrigation advice: dispatches input
- Flask routes → Disease detection: dispatches image
- Disease detection → Image classifier: classifies image
- Image classifier → Disease model files: loads weights
- Disease detection → Disease guidance: looks up diagnosis
- Flask routes → Satellite analysis: dispatches query
- Flask routes → Weather forecast: dispatches query
- Weather forecast → OpenWeatherMap: requests forecast
- Flask routes → Smart assistant: dispatches question
- Flask routes → Farm services: serves farm pages
- Smart assistant → Flask routes: returns answer
- Rule-based Q&A → Flask routes: returns answer