danlipert / youtube-demo

Choose a youtube video, watch your emotions analyzed in realtime

Home Page:https://affectiva.github.io/youtube-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emotion-enabled YouTube Demo

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 the Affectiva's JavaScript SDK, visit http://developer.affectiva.com/.

Try it Now!

Click here to try the demo.

Running the Demo Locally:

Requirements:

  • Python 2.x or higher
  • Supported web browser (Google Chrome, Firefox, or Opera)

Getting Started:

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 2.x

$ python -m SimpleHTTPServer 8000 

Python 3.x

$ 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.

About

Choose a youtube video, watch your emotions analyzed in realtime

https://affectiva.github.io/youtube-demo

License:MIT License


Languages

Language:JavaScript 68.3%Language:HTML 18.3%Language:CSS 13.4%