This project implements a Convolutional Neural Network (CNN) model for classifying images of flowers into five categories: daisy, dandelion, rose, sunflower, and tulip.
- Train a CNN model on a dataset of flower images
- Classify flower images using the trained model
- Real-time classification using webcam input
- Streamlit web application for easy interaction
-
Clone this repository: git clone (https://github.com/ennajari/Floral_Recognition) cd
-
Create a virtual environment (optional but recommended): python -m venv venv source venv/bin/activate # On Windows, use venv\Scripts\activate
-
Install the required packages: pip install -r requirements.txt
---> . To run the Streamlit web application: streamlit run app.py
app.py
: Main Streamlit application for flower classificationFlower_Recog_Model.keras
: Saved trained modelImages/
: Directory containing the dataset of flower imagesSample/
: Directory containing sample images for testing
The model achieves high accuracy on both training and validation sets. Refer to the generated plots for detailed performance metrics.
Ennajari abdellah @ennajari