Skip to content

Tkd-Alex/Food-Classification

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 

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

About

A Social Media Management project. Feature collection with BOW. Pics classification with k­-NN.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages