Code Libraries: Computer Vision
WebGazer.js is an eye tracking library that uses common webcams to infer the eye-gaze locations of web visitors on a page in real time. The eye tracking model it contains self-calibrates by watching web visitors interact with the web page and trains a mapping between the features of the eye and positions on the screen.
headtrackr is a library for real-time face tracking and head tracking. It tracks the position of a user’s head in relation to the computer screen, via a web camera and the WebRTC/getUserMedia standard.