This project is a plant disease classification and diagnosis system that uses a neural network to classify plant disease images. It utilizes the Plant Village dataset for training and offers two backend options: Django and FastAPI. Additionally, a Flutter app is provided for users to upload images of plant leaves and identify the disease.
- Neural network for plant disease classification.
- Used Transfer Learning using kerras model EfficientNetB3.
- Model Accuracy: approx 97.8%
- Model Size: 71 MB
- Choice of Django and FastAPI backends for serving the classification model.
- A Flutter app for users to diagnose plant diseases with uploaded leaf images.
- Easy setup and deployment with clear instructions.
demo.mp4
To set up the FastAPI backend, follow these steps:
- Clone this repository:
git clone https://github.com/KumarUtsav1025/PlantDisClfFullStackApp.git
- Navigate to the FastAPI backend directory:
cd FastApiBackend - Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Run the FastAPI backend:
uvicorn main:app --reload
To set up the Django backend, follow these steps:
- Clone this repository:
git clone https://github.com/KumarUtsav1025/PlantDisClfFullStackApp.git
- Navigate to the Django backend directory:
cd PlantDiseaseClassificationApp cd DjangoBackend
- Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use: venv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Apply migrations and start the Django server:
python manage.py migrate python manage.py runserver
To set up the Flutter app, follow these steps:
- Clone this repository:
git clone https://github.com/KumarUtsav1025/PlantDisClfFullStackApp.git
- Navigate to the Flutter app directory:
cd FlutterApp cd plant_dis_clf_app
- Get dependecies
flutter pub get
- Build and run the app on your preferred platform using Flutter commands:
flutter run
Access the FastAPI backend at http://localhost:8000 or the Django backend at http://localhost:8000 (if you set up the Django backend). Use the Flutter app to upload plant leaf images for disease diagnosis.