Git Product home page Git Product logo

happy-image-tester-nodejs's Introduction

Happy or Not

This project is a demo to show how to use https://www.projectoxford.ai/. You will need to obtain a key for the Emotion API here. See below for how to set environment key for windows or mac/linux.

You can find a demo at http://happyimagetester.azurewebsites.net/.

Prefer Python? Check out this sample in Python.

Notes

Uses GM module which requires setup of GraphicsMagick or ImageMagick: https://github.com/aheckmann/gm. See below for instuctions on how to install.

##Set up

  1. First install GraphicsMagick (or Image Magick. I found GraphicsMagic was easier to set up on windows)
  2. For Windows go to http://www.graphicsmagick.org/download.html and click on Sourceforge and select the link next to "Looking for the latest version?"
  3. On Mac brew install graphicsmagick
  4. Clone this repo and cd happy-image-tester-nodejs into the folder
  5. Open a terminal or cmd prompt
  6. Install dependencies: npm install
  7. Set Oxford API Key in environment (mac/linux or windows)
  8. Start server: npm start
  9. Browse to localhost:3000 to see the application in action

Set Environment Variable on Windows

  1. Open cmd prompt
  2. Type set OXFORD_KEY=<your key>

If you want to set the environment key permanently you can use setx: setx OXFORD_KEY <your key>

Set Environment Variable on Mac

  1. Open terminal
  2. Type export OXFORD_KEY=<your key>

If you want to set the environment key permanently you set them in your .bashrc profile on linux and on mac set them in .bash_profile.

happy-image-tester-nodejs's People

Contributors

jsturtevant avatar

Watchers

 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.