GithubHelp home page GithubHelp logo

docongminh / classification-sift-svm Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 3.0 31.82 MB

Build a classifier to classify transport using sift and svm

Python 100.00%
bag-of-words svm-classifier svm sift-algorithm sift-descriptors classification gridsearchcv

classification-sift-svm's Introduction

Classification-SIFT-BoW-SVM

Build a classifier to classsification transport using sift, bag of words and svm

Tree Project

Root/

data  # Data contains total 1854 image of 5 classes: bus, car, moto, pedestrian 

data_loader.py  # Imread image and label for data

sift_extractors.py # Extract features with SIFT and Build Bag of Word

build_model.py  # Build model SVM and training

gridSearchCV    # implement GridSearchCV find Hyper-params

Hyperparameters

  • Number of centroid in Kmean: 60
  • Penalty parameter C of the error term in SVM: 30

Label

  • 'moto': 0
  • 'car': 1
  • 'pedestrian': 2
  • 'truck': 3
  • 'bus': 4

Statistic Data

- Statistics All Classes

- Statistics Classes

Accuracy

- Accuracy score: 72.9% - test size: 0.2 

Using GridSearchCV

- Best params

    'clf__C': 5,
    'clf__gamma': 0.01,
    'clf__kernel': 'rbf'
    
 - Accuracy:  75.72% +/-1.52%

Requirements

- opencv-contrib-python==3.4.2.16

- opencv-python==3.4.2.16

classification-sift-svm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.