Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Packages

No packages published

Languages

You can’t perform that action at this time.