hiteshx33/plant-disease-service
0
Plant Disease Detector
FastAPI service that detects plant/crop diseases from leaf images using the linkanjarad/mobilenet_v2_1.0_224-plant-disease-identification model.
Trained on the PlantVillage dataset — 38 classes covering diseases across tomato, potato, corn, grape, apple, cherry, peach, pepper, strawberry, and more.
API
POST /predict
{
"image": "<base64-encoded leaf/plant image>"
}Response:
{
"diagnosis": "Tomato___Early_blight",
"confidence": 0.9412,
"predictions": [
{ "label": "Tomato___Early_blight", "score": 0.9412 },
{ "label": "Tomato___Late_blight", "score": 0.0321 },
...
],
"model": "linkanjarad/mobilenet_v2_1.0_224-plant-disease-identification",
"latency_ms": 156
}GET /health
Returns service health status.
