Giter Club home page Giter Club logo

food-detection-based-on-faster-r-cnn-using-keras.'s Introduction

Food-Detection-Based-On-Faster-R-CNN.

Introduction


Our project dataset mainly came from ECUSTFD[1], which is a free public food image dataset. This dataset has 19 types of food as shown in the figure. The number of food images is 2978. The number of images in each class. merge_from_ofoct 4
'apple': 322, 'banana': 212, 'bread': 66, 'bun': 90 , 'doughnut': 210, 'egg': 104, 'fired_dough_twist': 124, 'grape': 58, 'lemon': 185, 'litchi': 78, 'mango': 250, 'mooncake': 134, 'orange': 281, 'peach': 126, 'pear': 182, 'plum': 176, 'qiwi': 137, 'sachima': 150, 'tomato': 201.

Data pre-process


The first step is data pre-process, include transforming "xml" annotation file into "csv" file. Then I split data into training and validation set. The ratio is 7:1.

Methods


We employed Keras to implement Faster RCNN. For Faster RCNN, it use Region Proposal Network(RPN) to generate the prediction box. specifically, RPN uses CNN to extract a feature map(5139256). Then each point at the feature map is responsible for the screening of 9 boxes with different size in the original image. The goal for screening is to check whether there is an object or not in the box. All these points are called 'anchors'. You can adjust the size of the box. After RPN generate the box, we use ResNet to classify all these boxes.

Test result


In this project, we achieve 82% mean accuracy for all 19 kinds of food. According to the confusion matrix, we can konw that the result is balanced.

The test result show as below. merge_from_ofoct 5

Requirement


h5py
Keras==2.0.3
numpy
opencv-python
sklearn

References


[1] https://github.com/Liang-yc/ECUSTFD-resized-

food-detection-based-on-faster-r-cnn-using-keras.'s People

Contributors

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