Giter Site home page Giter Site logo

junzhengca / easy-reheat Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 1.0 3.78 MB

A web-app that uses cutting edge artificial intelligence to suggest a microwave time for your food.

PHP 38.01% JavaScript 16.93% HTML 7.02% CSS 6.36% Python 13.92% C# 15.70% Shell 2.07%

easy-reheat's Introduction

EasyReheat

EasyReheat will tell you exactly how long the food needs to be microwaved. It uses Computer Vision to detect food types and uses Machine Learning to improve overtime.

EasyReheat is also avaliable via Azure Bot Service.

Quick Start

EasyReheat uses Docker to deploy. Please make sure you have Docker installed.

  • cd into the repository.

  • Build a docker image by typing: docker build -t easy-reheat . Wait for it to build. Upon completion You should see something like this:

Successfully built 5c9bae304424
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and director
ies added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions f
or sensitive files and directories.

Ignore the security warning and proceed.

  • Run the docker container by typing
docker run -d -p local_port_you_wish_to_map:80 -v abs_path_to_src:/var/www/html easy-reheat
  • Now check to see if the docker container is running by typing docker ps, you should see something like this:
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
8072921058db        easy-reheat         "/usr/sbin/apachectl "   3 minutes ago       Up 3 minutes        0.0.0.0:8081->80/tcp   gloomy_goldwasser
  • You should now be able to access the app by going to localhost:local_port_you_wish_to_map

Configuration

EasyReheat needs to be configured.

First, modify src/config.php

<?php
    // Gloabl Configuration File
    namespace EasyReheat;
    class GlobalConfig {
        // Development mode, turn this off in production env.
        public static $dev_mode = true;
    }

    class ApiConfig {
        // Computer Vision API key (Microsoft)
        public static $cv_key = "ede4019e77124fa495407438f3e2c9d4";
    }
?>

Then, create a directory called images in src/api

easy-reheat's People

Contributors

ianw3214 avatar evw1998 avatar

Stargazers

Stella Wang avatar Anurudran Chandrasekaram avatar Shengming Yuan avatar  avatar Jun avatar  avatar

Watchers

Jun avatar  avatar  avatar

Forkers

fannyzhang95

easy-reheat's Issues

Configure production server to use Docker.

Currently the production server does not user Docker. Therefore we are unable to update the web interface.

It will be stupid to post the server password here, therefore I will do this myself.

Stop using font-size:xxvh or xxvw

Try to use JavaScript or media-query.
xxvh and xxvw will cause font to resize on mobile devices when scrolling down. Not really a pleasant experience.

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.