This project implements a FastAPI-based web application for classifying potato plant diseases using deep learning. The application can identify three conditions:
- Potato Early Blight
- Potato Late Blight
- Healthy Potato Plant
- Web interface for image upload
- Real-time disease classification
- REST API endpoint for predictions
- Docker support for easy deployment
- Clone the repository:
git clone https://github.com/Atasatti/Potato_disease_Classification.git
cd Potato_disease_Classification- Build and run using Docker Compose:
docker-compose up --buildThe application will be available at http://localhost:8000
- Create a virtual environment:
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
uvicorn main:app --host 0.0.0.0 --port 8000GET /: Web interfacePOST /predict/: Upload an image for disease classification
- FastAPI
- TensorFlow/Keras
- OpenCV
- Docker
- Python 3.10