How mohammedrayhanrceg/potato-leaf-disease-detection-and-analysis works
This is a Flask potato-leaf disease diagnosis app. A user opens the upload form, submits an image, and the app checks whether it is a leaf and whether it is a potato leaf before classifying disease. For diseased leaves, it segments affected areas and saves an overlay; the result page presents the diagnosis and disease information. The inference, preprocessing, and routing logic are all in app.py. The README is empty, and the notebooks and model artifacts are not sampled, so their roles and connections are not represented.
Main entry points: app.py Flask app · upload.html Upload form · result.html Result page · uploads Uploaded images
Components 11
Web experience
- Flask app
app.py - Upload form
templates/upload.html - Result page
templates/result.html - Uploaded images
static/uploads
Image diagnosis
- Leaf validation
app.py - Potato classifier
app.py - Disease ensemble
app.py
Disease analysis
- Disease guidance
app.py - Lesion segmentation
app.py - Mask overlays
static/uploads
Other components
- User
Connections 11
- User → Flask app: visits
app.py - Flask app → Upload form: renders
app.py - User → Flask app: submits image
app.py - Flask app → Uploaded images: saves upload
app.py - Flask app → Leaf validation: checks leaf
app.py - Flask app → Potato classifier: checks potato
app.py - Flask app → Disease ensemble: classifies disease
app.py - Flask app → Disease guidance: looks up guidance
app.py - Flask app → Lesion segmentation: segments lesions
app.py - Flask app → Mask overlays: writes overlay
app.py - Flask app → Result page: renders result
app.py