Hysen Labs
Library / SDK
auduno/headtrackr avatar
auduno

headtrackr

GitHub describes it as Javascript library for headtracking via webcam and WebRTC/getUserMedia. The repository metadata lists JavaScript as its primary language. This article stays within the project description and details documented in the GitHub repository README.

3,704 stars500 forksJavaScriptLicense varies
01
DEEP OPEN-SOURCE ANALYSIS

auduno/headtrackr: README details

GitHub describes it as Javascript library for headtracking via webcam and WebRTC/getUserMedia. The repository metadata lists JavaScript as its primary language. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as Javascript library for headtracking via webcam and WebRTC/getUserMedia. The repository metadata lists JavaScript as its primary language. The README describes the project this way: headtrackr is a javascript library for real-time face tracking and head tracking , tracking the position of a users head in relation to the computer screen, via a web camera and the webRTC/getUserMedia standard.

03
DEEP OPEN-SOURCE ANALYSIS

README details

The README section "README details" states: For a demonstration see this video or try out some of the examples with a laptop that has a camera and a browser that has camera webRTC/getUserMedia support. For an overview of browsers supporting the getUserMedia standard see http://caniuse.com/stream.

04
DEEP OPEN-SOURCE ANALYSIS

Usage

The README section "Usage" states: The following code initiates the headtrackr with a video element which will be used for the mediastream, and a canvas element we will copy the videoframes to.

05
DEEP OPEN-SOURCE ANALYSIS

Usage

The README section "Usage" states: When the headtracker is started, this will now regularly generate the events headtrackingEvent and facetrackingEvent on the document. The event headtrackingEvent has the attributes x , y , z , which tells us the estimated position of the users head in relation to the center of the screen, in centimeters. The event facetrackingEvent has the attributes x , y , width , height and angle , which tell us the estimated position and size of the face on the video.

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes