Git Product home page Git Product logo

restaurant-menu-expert's Introduction

Restaurant Menu Expert

We have developed user friendly system that translates the text of english restaurant menus into pictures of the corresponding dishes.Users are asked to take picture of menu and to crop and select the desired dish text which then processed by the proposed pipeline and displayed back with dish images along with dish names.


Python Implementation of Restaurant Menu Expert

Directory Structure

├── Documentation.md
├── README.md
├── documents : 
    ├── Presentations for mid & final evaluation 
├── images : Images for markdown files
├── img : 
    ├── menu_items : Contains images of dishes 
    ├── Sample Menu Images
├── output : Folder contains output of the program
├── src : 
    ├── Menu.ipynb : Assembled python notebook of main Class of Restaurant menu expert
    ├── examples.ipynb : Tested examples with 
    ├── main_class.ipynb 
    ├── performance_measures.ipynb : Performance Plots
    ├── test.ipynb : Initlia piecewise implementation of pipeline 
    ├── restaurant_menu.py : contains final implementation of the class 
    ├── main.py :  Driver Script that import restaurant_menu class and runs the pipeline with parameters given in command line argument 

Requirements

  • Python 3
  • OpenCV 2.0
  • Numpy
  • Matplotlib
  • Scikit-image 0.17.1
  • Pillow 2.2.1
  • Pytesseract 0.3.6

Development is done on Linux Environment


Running The Code

Setup

  • Clone The Repository
  • Install All The Requirements
  • Put the dish images inside the menu_items folder in img
  • Install tesseract-ocr
        $ sudo apt-get install tesseract-ocr

Running Script

  • Run the script 'main.py' in src with arguments , image path and maximum allowed edit distance
        $ python3 main.py <img_path> <max_dist>
  • Example :
        $ python3 main.py --img_path ../img/test.jpg --max_dist 4

Things to take care of

  • Press Enter 2 Times After selection of ROI From image , otherwise it will generates error
  • Put all the disk images that you want to visualize in the menu_item folder with .jpeg extension
  • Names of dish images must be same as written in the menu
  • Don't choose dish images that are very large or small. It may cause stretching or compression of the dish image in output
  • Choose clean menu Images that don't have much noise or not blurred

Output

menu

output

restaurant-menu-expert's People

Contributors

jay-krishna avatar

Stargazers

Raj Krishna avatar

Watchers

James Cloos 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.