GithubHelp home page GithubHelp logo

azadehkhojandi / menuexplorer Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 7.11 MB

Home Page: https://themenuexplorer.azurewebsites.net/

CSS 4.68% JavaScript 49.70% HTML 9.53% C# 36.10%
azure-functions cognitive-services translates

menuexplorer's Introduction

Menu Explorer

Menu Explorer is an application to allow you to take a photo of a local menu and have it display graphics of the dishes and translate it for you.

When you travel aboard, sometimes you like to be adventurous and check out the local restaurants. However if you are in a country that speaks a different language it can be difficult to order. Menu explorer not only translates the menu in English for you, but can also display pictures of the dish based on the original language. This helps with many dishes where literal translations aren't suitable (e.g. a "Baked Alaska").

The application is hosted on Azure for you to try https://themenuexplorer.azurewebsites.net/

example of displaying translated menu with photos of the dish

This project has two parts:

  1. menuexplorerfuncapp - Azure function projects
  2. menuexplorerapp - Client side application

architecture diagram

1- menuexplorerfuncapp

Contains azure functions (serverless) to work with Microsoft cognitive services. To know more about cognitive services and try it check out https://azure.microsoft.com/en-us/try/cognitive-services/

Running locally

You can run the project on your local computer - if you have Visual Studio 2017 15.3 (or later) and “Azure development” workload installed on your computer https://blogs.msdn.microsoft.com/webdev/2017/05/10/azure-function-tools-for-visual-studio-2017/ https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio also, please make sure you get subscription keys for each of the services. All of them have free tier so there won't be any cost involved.

Local Settings and CORS with Azure functions

you need to copy and update local.settings.json from documents folder to menuexplorerfuncapp folder and make sure "Copy to output directly" set to "copy if newer"

More info: https://docs.microsoft.com/en-us/azure/azure-functions/functions-run-local

2- menuexplorerapp

You need node js installed on your computer to get the client app running. run npm install to install dependency packages - It uses express to host the application and for the client side it's basic javascript/jquery

run npm start to start the application

How to deploy the solution to Azure

As the solution has 2 parts to it, before setting the deployment options first we need to set the 'PROJECT' property in the app settings

  • Set value of 'PROJECT' to menuexplorerfuncapp/menuexplorerfuncapp.csproj for your azure function
  • Set value of 'PROJECT' to menuexplorerapp for your node js web app

more info: https://www.hanselman.com/blog/DeployingTWOWebsitesToWindowsAzureFromOneGitRepository.aspx https://github.com/projectkudu/kudu/wiki/Customizing-deployments

menuexplorer's People

Contributors

azadehkhojandi avatar davidburela avatar

Stargazers

 avatar  avatar

Watchers

 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.