This project provides a muggle implementation of the Hogwarts sorting hat.
- Sign up for a developer account at http://clarifai.com/
- Create an application in order to obtain a client ID and secret.
- Clone this repo and copy and paste your ID and secret into a keys.js file in your project as
var CLIENT_ID = "your_client_id";
var CLIENT_SECRET = "your_client_secret";
- Open the test.html using your favorite browser. Copy and paste the link to a picture of yourself (or any person you want to sort) in the ImageURL input box at the bottom of the page. Make sure it's a valid image link (ends in .jpg, .jpeg, .png...)
This sends your picture to the Clarifai API which returns the colors in the image. We use some complicated math jams to determine which house the color scheme in your picture places you in, then let you know what the sorting hat things!