How chandanajn816/smart-fertilization-recommondation-engine works
This is a Flask farm-management and fertilizer-advisory app. A grower signs in, creates a field, optionally identifies a crop from an image, enters soil and environmental measurements, and receives a fertilizer recommendation with supporting advisory information. Field and analysis history can be revisited through the dashboard. The code also defines account registration and session handling. The excerpts establish the route-to-service and route-to-model interactions; several field-route sections are omitted, so uncertain details of those handlers are not mapped.
Main entry points: __init__.py Flask app setup · fields/routes.py Field workflows · models.py Farm records · auth/routes.py Account routes
Components 11
Web application
- Flask app setup
app/__init__.py - Account routes
app/auth/routes.py - Field dashboard
app/dashboard/routes.py - Field workflows
app/fields/routes.py - Page templates
app/templates
Farm records
- Farm records
app/models.py
Crop and soil advisory
- Plant identification
app/services/plantnet_service.py - Fertilizer prediction
app/services/prediction_service.py - Trained model artifact
ml/models/fertilizer_model.joblib
Other components
- Grower
- Pl@ntNet API
Connections 15
- Grower → Flask app setup: requests pages
- Flask app setup → Account routes: registers routes
- Flask app setup → Field workflows: registers routes
- Flask app setup → Field dashboard: registers routes
- Flask app setup → Farm records: creates schema
- Account routes → Farm records: reads and writes
- Account routes → Page templates: renders pages
- Field dashboard → Farm records: reads fields
- Field dashboard → Page templates: renders pages
- Field workflows → Farm records: reads and writes
- Field workflows → Plant identification: identifies image
- Plant identification → Pl@ntNet API: sends image
- Field workflows → Fertilizer prediction: requests prediction
- Fertilizer prediction → Trained model artifact: loads artifact
- Field workflows → Page templates: renders pages