How bikas-basnet/crop_abnormality_app works
NepAgNeuroVision is a Flask-based crop-abnormality diagnosis app. A user submits a crop image and crop selection; the app verifies the crop, runs the crop-specific classifier, and presents a diagnosis with confidence and localized management advice. The sampled app excerpt shows the model configuration, inference-related decisions, and rendering calls; the README documents additional interface and prediction capabilities. Most runtime behavior is concentrated in app.py, so multiple nodes point to that file. The sampled excerpts do not expose every route or inference detail.
Main entry points: app.py Request handling · index.html Image upload form · model Crop model weights
Components 14
Web experience
- Flask app
app.py - Image upload form
templates/index.html - Request handling
app.py - Bilingual interface
templates/index.html
Diagnosis pipeline
- Image preprocessing
app.py - Crop verification
app.py - Crop model configuration
app.py - Crop model weights
model - CNN classifiers
app.py - Abnormality prediction
app.py
Results and guidance
- Confidence and severity
app.py - Localized recommendations
app.py - Diagnosis results
templates/index.html
Other components
- Farmer
Connections 13
- Farmer → Flask app: submits image
README.md - Flask app → Image upload form: renders
app.py - Image upload form → Request handling: submits form
- Request handling → Image preprocessing: prepares image
app.py - Request handling → Crop verification: checks crop
app.py - Request handling → Crop model configuration: selects configuration
app.py - Crop model configuration → Crop model weights: configures model paths
app.py - Request handling → CNN classifiers: loads classifier
app.py - CNN classifiers → Abnormality prediction: predicts class
app.py - Request handling → Confidence and severity: computes severity
app.py - Request handling → Localized recommendations: selects advice
app.py - Flask app → Diagnosis results: renders diagnosis
app.py - Diagnosis results → Bilingual interface: presents bilingually
README.md