This demo uses Affectiva's JavaScript SDK to analyze your emotions as you watch a YouTube video. Search a YouTube video by keyword or enter its URL, and with your webcam turned on, you'll be able to see your emotions both during the video and during playback. The code is written entirely in JavaScript, HTML, and CSS. d3 was used to render the emotions graph.
For more information about Affectiva's JavaScript SDK, visit http://developer.affectiva.com/.
Click here to try the demo.
- Python 2.x or higher
- Supported web browser (Google Chrome, Firefox, or Opera)
- Install Python
To test if Python is installed, run the following command on either Command Prompt or Terminal:
$ python
-
Clone the repository on your local machine
-
Open Command Prompt/Terminal and navigate to the folder where the source code was cloned
-
Run a server with the following command:
$ python -m SimpleHTTPServer 8000
$ python -m http.server 8000
Once the server is up, open a web browser and navigate to http://localhost:8000/. The demo should start loading.
- Chrome 51 or higher
- Firefox 47 or higher
- Opera 37