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.
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
- First install GraphicsMagick (or Image Magick. I found GraphicsMagic was easier to set up on windows)
- 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?"
- On Mac
brew install graphicsmagick
- Clone this repo and
cd happy-image-tester-nodejs
into the folder - Open a terminal or cmd prompt
- Install dependencies:
npm install
- Set Oxford API Key in environment (mac/linux or windows)
- Start server:
npm start
- Browse to localhost:3000 to see the application in action
- Open cmd prompt
- Type
set OXFORD_KEY=<your key>
If you want to set the environment key permanently you can use setx: setx OXFORD_KEY <your key>
- Open terminal
- 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
.