How kunal05052003/plant_disease_detection works
Project type and purpose
• GreenFarmMinds (aka Rudraksh) is a full-stack web application for plant disease detection.
• It consists of a Next.js/TailwindCSS frontend that farmers use to upload leaf images, and a Python/Flask backend that runs an ML model to diagnose diseases.
File structure
• Top level:
• api/ – the inference microservice
• web/ – the Next.js frontend
• api/src/
• main.py & wsgi.py – Flask entry points (Procfile for Heroku)
• model_files/ – serialized model (model.pth), prediction logic (ml_predict.py), label/data JSON
• web/
• src/app/ – Next.js 13 “app router” pages (home, about, docs)
• src/components/ – reusable UI (navbar, footer, accordions, theme toggle)
• src/lib/ & src/config/ – shared utilities, types, site config
• src/content/docs/ – MDX content for the disease library
• .env.example – frontend API key for external Plant ID service
README for additional insights
• Frontend calls the Flask API for image‐based ML inference.
• A “Disease Library” is just static MDX content served by Next.js.
• Uses React Query in the UI for data‐fetching/caching.
• Deployment targets: Vercel (web) and likely Heroku or similar for the API.