AI-Crop-Disease-Detector-for-Bangladeshi-Farmers
TensorFlow/KerasONNXFastAPINext.jsGitHub
A farmer uploads (or captures) a photo of a plant leaf using a $100 Android phone. The app detects the crop and the most likely disease, shows a confidence score with top-3 alternatives, and gives treatment advice written in simple Bangla. When the model is not confident, it says so honestly, still shows its best guess's advice labeled low-confidence, and recommends consulting the local agriculture officer โ because a wrong pesticide recommendation can destroy a farmer's season.
Features
- Features Here is what it can do: Scan a leaf: Capture with the phone camera or pick a file. Non-leaf guard: Tuber/product-style photos and flat/blank images are refused with clear Bangla guidance instead of a fake low-% diagnosis. Photo-quality warnings: Blurry or too-dark shots still get a diagnosis, but the response chips in Bangla advice to retake closer / in daylight. AI diagnosis: Crop + condition prediction across 61 trained classes on 11 crops. Confidence + top-3: Confidence % and three alternatives, so the farmer sees the whole picture. Honest uncertainty: Below the calibrated confidence threshold the app refuses to guess: it shows the best guess's advice labeled low-confidence + "consult an agriculture officer". Unclear-crop warning: If the top-3 spans multiple crops, the UI warns that the crop itself is unclear and gives photo-quality tips. Scan history: Past scans saved; /history page (backend SQLite).
- What it CAN recognize These are the exact classes the shipped model was trained on. For each, the app gives a diagnosis confidence plus Bangla advice (symptoms / treatment / organic option / prevention / when to call an expert). Rice, Potato, Tomato, Chilli, Maize, Cauliflower, Cucumber, Grape, Mango, Okra, Papaya.