Skip to content

Instantly share code, notes, and snippets.

@peterbraden
Created March 4, 2013 20:18
Show Gist options
  • Save peterbraden/5085258 to your computer and use it in GitHub Desktop.
Save peterbraden/5085258 to your computer and use it in GitHub Desktop.
blog post code 2
var matrixStream = new cv.VideoCapture(0).toStream()
, faceRecognitionStream = new cv.ObjectDetectionStream(cv.FACE_CASCADE)
faceRecognitionStream.on('data', function(faces){
console.log("I spy", faces.length, "faces...")
})
matrixStream.pipe(faceRecognitionStream)
matrixStream.read()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment