Flower classification is a pretty common task and it consists in taking a flower image as input and outputting the most likely type/class of the flower. The goal of this project is to build an web application that will be trained on set of labeled flower images to make predictions on the given input.
- Create Pandas DataFrame from row data and save it in CSV file
- Use HOG: Histogram of Oriented Gradients as feature extraction algorithm
- Split the dataset into Training set and Test set with ratios 75% and 25% respectively
- Build and train a classifier models (kNN, Naïve Bayes and Decision Tree) based on the Training set (pandas’ DataFrame). Then save these models as Pickle to load it later on the deployment.
- Deploy the models as REST API using Python FLASK.
pip3 install -r requirements.txt
python create_dataset.py
python dataset_preprocessing.py
python app.py
EndPoint | Method | Prams |
---|---|---|
/predictions | [POST] | file: file, model: (knn, dt, nb) |
Licensed under the MIT license.