Giter VIP home page Giter VIP logo

food_log's Introduction

Master thesis project at Cranfield University in 2016. The goal is to localise and recognise food items on a picture. Combination of image processing and machine learning.

To get more information on previous work, the methodology or the results, see my thesis report in the sub-directory thesis.

Installation

Install:

  • Python 3 (version: 3.5.2)

  • Caffe and PyCaffe (version : rc3)

    Make sure that caffe can be imported in your project with

    import caffe

    Then, install using the Model Zoo (and especially the installation using the script included in caffe) these two pre-trained models:

  • OpenCv 3 and its Opencv python (version: 3.1) with opencv_contrib (version 3.1)

    Again, make sure that opencv can be imported in your project with

    import cv2
  • Optional: create a virtual environment for the project

  • Clone the repository

    git clone https://github.com/bnogaret/food_log.git
  • Install python dependencies:

    pip install -r requirements.txt
  • Download and unzip in /data/ directory UEC FOOD256 and/or UEC FOOD100. See section 5 of my thesis report for the reasons behind this dataset choice.

    โš ๏ธ Be careful, I have modified added / modified some files from these archives (they are included in the repo).

Tests

To run the (too few) tests, execute from the root directory:

cd src/tests/
python3 -m unittest discover

Documentation:

To generate the documentation, sphinx must be installed.

pip install sphinx

To compile the documentation, the below command must be executed in the root directory:

sphinx-build -b html docs/ build/

food_log's People

Contributors

bnogaret avatar

Watchers

 avatar

Forkers

soyoungcheng

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.