This project involves the Management System for Moroccan Agriculture 🌱
- Detect pests and diseases: "Potato-Leaf-Disease-Classification-using-CNN"
Every year, farmers suffer economic losses and crop waste due to various diseases affecting potato plants. Among these diseases, Early Blight and Late Blight are particularly devastating to potato leaf health. The significant yield losses experienced by potato growers are largely attributed to these ailments. Consequently, images are categorized into three classes:
-
Potato Late Blight
-
Potato Early Blight
-
Potato Healthy Leaf
The process entails multiple steps, starting with the importation of libraries, loading and visualization of data, partitioning the data into training and validation sets, preprocessing the data, constructing the CNN model, training the model, and evaluating its performance.
The dataset can be accessed on Kaggle: https://www.kaggle.com/datasets/arjuntejaswi/plant-village
Web application to detect potato plant leaf diseases 🍃
huggingface : https://huggingface.co/spaces/MoroccanDS/Moroccan-Agri-Leaf-Pest-Detection
In this project we aim to build a web app that can assist farmers in detecting potato plant diseases.
The application will be able to classify the disease in an infected potato plant using it's leaf and Convolutional Neural Networks.
- Python 3.9 or later
- Flask
- gunicorn
- streamlit
- tensorflow
- pillow
- numpy
- Clone the repository :
git clone https://github.com/Moroccan-Data-Scientists/Management-System-for-Moroccan-Agriculture-
- Navigate to the project directory :
cd Moroccan-Data-Scientists/Management-System-for-Moroccan-Agriculture-
- Create a virtual environment and activate it using your preffered shell :
python -m venv venv
source venv/bin/activate
- Install the required dependencies :
pip install -r requirements.txt
- Start the Flask web application locally using Gunicorn(or Flask) :
gunicorn app:app
flask run
- Start the streamlit web application :
streamlit run streamlit_app.py
- The application will be available at :
- If you used Gunicorn: http://127.0.0.1:8000/
- If you used flask run: http://127.0.0.1:5000/
- If you used streamlit: http://localhost:8501/
- Example of usage :