Giter Site home page Giter Site logo

image-classification-with-cnn-rf's Introduction

The algorithm in Layman term:

Fruit image recognition process in Machine Learning is so similar to how babies start recognizing the fruits.

For example, parents try to make babies learn the colors. They show baby the color and tell the name of the color with it. And they just not do it once, they keep reminding baby and practice the color identification exercise everyday! Some chemical things happen in the brain and baby start learning the colors like red, yellow by seeing different colors so many times. Similar for the shapes, baby start recognizing the circle, rectangle, triangle, etc.

Then parents keep reminding the baby that if it is red and round, it’s an “apple”. If its round and orange, it is an “orange” and so on. Maybe as human, baby will also recognize the fruit with smell and taste later.

So, same as parents, we fed various images are fed in machine learning model (you can consider that baby’s brain) with some maths equations (consider it as those chemical reactions in brain) which recognize the different features (the factors that baby will consider to recognize the fruit like color, size, shape, smell, taste). And with different combinations baby will finally classify the fruits.

So two tasks are taking place here to identify the fruits for image:

Feature extraction --> Deciding the factors to be considered to identify the fruit

Classification --> See the combinations of the features and check with which fruit it is most similar.

Conventionally, only one algorithm called Convolutional Neural Network (CNN) is used for both the tasks as CNN. But what if I use the algorithms working individually best for each task! (one for Feature Extraction and one for Classification). CNN does pretty good job in identifying the features. For classification, “Random Forest” algorithm is well-known. Hence, I have used Random forest+ CNN to identify the fruit rather than only CNN.

This novel algorithm gave me 5 times more accuracy than the conventionally using only CNN.

Image-Classification-with-CNN-RF

Our goal is to implement fruit recognition using Convolutional Neural Network(CNN) (keras and OpenCV) by training the Fruits 360 dataset available on kaggle. We aim to develop a feature extraction technique with convolutional neural networks. On extracted features (with CNN), random forest classifier is used to classify the images. By applying this model to images captured using front camera, fruits can be predicted.

Reference:

We are using kaggle dataset https://www.kaggle.com/moltean/fruits/data

image-classification-with-cnn-rf's People

Contributors

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