Code Monkey home page Code Monkey logo

food-classification's Introduction

Food-Classification

This Social Media Management project allow to classificate picture between food and non-food.

What we do:

  1. Extract feature splitted 70% for training and 30% test set.
  2. With deasy (step=8) extract local feature.
  3. To build aur dictionary of visual word, we have cluster all local feature with KMeans=500 (scikitlearn).
  4. Finally to classificate the picture we have used KNN.

markdown-preview

Bag of visual word

In computer vision, the bag-of-words model (BoW model) can be applied to image classification, by treating image features as words. In document classification, a bag of words is a sparse vector of occurrence counts of words; that is, a sparse histogram over the vocabulary. In computer vision, a bag of visual words is a vector of occurrence counts of a vocabulary of local image features.

Set enviroment

You need to have install on your system:

How to use

To use this script you need to clone this repo and download from release the dataset.7z file. Extract the file in the same folder of the repo and extract dataset/Food.7z & dataset/Non-Food.7z. Launch main.py and enojy the classificator.

References

Original dataset:

Inspired by http://iplab.dmi.unict.it/madima2015

food-classification's People

Contributors

pietrobiondi avatar tkd-alex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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