Giter VIP home page Giter VIP logo

classifying-cars-by-brand-with-matlab's Introduction

Classifying images of cars by brand

By: Zack Beucler COM322 Final project

The goal of this project was to build models to classify images of the fronts of cars by brand (Ford, Nissian, Honda, or Toyota). I was able to build three different models which all had varying levels of accuracy.

Files

BOF_main.m

In this file, I created a model using the data collected from bag of features and used the classification learner to train an SVM. The type of SVM I picked was the Medium Gaussian SVM becasue it had the highest accuracy when trying to predict the training set (between 80% and 85%). However, when this model tried to predict the test set, it's accuracy decreased dramatically to only around 25%.

BOF2_main.m

In this file, I created a model using data collected from bag of features and used the Matlab trainImageCategoryClassifier() method to train the model. This was a much higher-level approach and it produced better results. The model's accuracy when trying to predict the training set was about 85%. When trying to predict the test set, the model was able to get between 80% and 85% accuracy which is much better than the previous model.

HOG_main.m

In this file, I created a model using data collected from HOG features and I used the fitceco() method to create a multiclass model. This model was much better than previous models. The model was able top The model's accuracy when predicting the training set was between 95% and 100%. The model's accuracy when predicting the test set was consistantly above 95% which greatly out performs the previous models.

The dataset I used was from the "confirmed fronts" dataset from this site. it was a huge dataset which was already labeled and had the background removed from each photo. The dataset contained 20+ car brands each with varying amounts of images. I was not able to add the datasets to this repo so please download them from the link above!

Images per class Ford: 3436 Honda: 1303 Nissan: 2384 Toyota: 1776

Heres an example below Example image

classifying-cars-by-brand-with-matlab's People

Contributors

zbeucler2018 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.