Created
March 4, 2013 20:17
-
-
Save peterbraden/5085251 to your computer and use it in GitHub Desktop.
blog post code 1
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
var s = new cv.VideoCapture(0) | |
var detect = function(){ | |
s.read(function(im){ | |
im.detectObject(cv.FACE_CASCADE, {}, function(err, faces){ | |
console.log("I spy", faces.length, "faces...") | |
detect(); | |
}) | |
}) | |
} | |
detect() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment