Skip to content

Instantly share code, notes, and snippets.

@peterbraden
Created March 4, 2013 20:17
Show Gist options
  • Save peterbraden/5085251 to your computer and use it in GitHub Desktop.
Save peterbraden/5085251 to your computer and use it in GitHub Desktop.
blog post code 1
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