Skip to content

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

Notifications You must be signed in to change notification settings

Tkd-Alex/Food-Classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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