Giter VIP home page Giter VIP logo

detect-good-car-picture's Introduction

0) Project summary

The main goal of this project is to find out if its feasable to create an image classifier, capable of detecting
images of car and the perspective from wich the photo was taken (front-side, back-side, side, back, front) None of the "Computer-Vision-As-A-Servie" providers gives you enough detailed informations to solve this problem with a simple API call.

We will try different approaches:

  • Train a CNN from scratch using the limited data we have
  • Use pretrained models (resnet, vgg19, overfeat) to extract features(output from last convolutional layers)
    from our dataset.
  • Use "classical" computer vision techniques and image descriptors (like HOG)
  • We build an ensamble of the above to make an stronger (hopefully) classifier

1) Labeling the Data

The firs step in order to start working on this problem is labeling some car pictures based on the perspective. We hope that using transfer learning and heavy image augumentation we will be able to achieve decent accuracy with very little data (few hundred images per class)

The stanford cars data set was re-labaled for this purpose
http://ai.stanford.edu/~jkrause/cars/car_dataset.html

Labeling guidelines:

  • front-side, front LP(license plate) visible, 2 wheels visible
  • front, front LP visible, no wheels visible
  • back, back LP visible, no wheels visible
  • back-side, back LP visible, 2 wheels visible
  • side, no LP visible, 2 wheels visible

As you can imagine with pretty simple guidelines like that some times choosing the right class can be tricky.

To make the labeling process smoother, i wrote a simple jupyter widget to make labeling easier


2) Training data summary, fighting class imbalance

The stanford-cards dataset is havily imbalanced in terms of perspective from wich the photos where taken This adds another layer of complexity and makes solving the problem a little bit more challenging

The final count-per-class the dataset looks as follows:

label_count label
196 back
512 front
952 side
1084 back-side
5246 front-side

(class counts df here)
(mention problems with class imbalance and possible solutions to fight it)


2) Preparing the folder structure

detect-good-car-picture's People

Contributors

i008 avatar

Watchers

 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.