Created
March 26, 2012 20:23
-
-
Save boyofgreen/2209391 to your computer and use it in GitHub Desktop.
face reco css
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.init = function() { | |
// Prep the document | |
App.video = document.querySelector('video'); | |
App.glasses = new Image(); | |
App.glasses.src = "i/glasses.png"; | |
App.canvas = document.querySelector("#output"); | |
App.ctx = this.canvas.getContext("2d"); | |
// Finally Check if we can run this puppy and go! | |
if (navigator.webkitGetUserMedia) { | |
navigator.webkitGetUserMedia('video', App.successCallback, App.errorCallback); | |
} | |
App.start(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment