Giter VIP home page Giter VIP logo

abdullah-abunada / image_classification Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 51.38 MB

The goal of this project is to build a web application that will be trained on a set of labeled flower images to make predictions on the given input.

License: MIT License

Python 0.44% PHP 0.17% JavaScript 36.06% CSS 31.06% HTML 32.28%
data-science knn-classifier classification-algorithm flower-classification flask-application flask-api decision-tree-algorithm naive-bayes-algorithm sklearn python-3

image_classification's Introduction

Flowers Image Classifier

Introduction

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.

Features

  1. Create Pandas DataFrame from row data and save it in CSV file
  2. Use HOG: Histogram of Oriented Gradients as feature extraction algorithm
  3. Split the dataset into Training set and Test set with ratios 75% and 25% respectively
  4. 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.
  5. Deploy the models as REST API using Python FLASK.

DEMO

Install Requirements

    pip3 install -r requirements.txt
    

Generate CSV Dataset

    python create_dataset.py

Train Models

    python dataset_preprocessing.py

Run Web Application

    python app.py

API

EndPoint Method Prams
/predictions [POST] file: file, model: (knn, dt, nb)

License

Licensed under the MIT license.

image_classification's People

Contributors

abdullah-abunada avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.