Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (8 sloc) 315 Bytes
cam = require('camera').createStream()
cv = require 'opencv'
cam.on 'data', (buf) ->
cv.readImage buf, (err, im) ->
return console.log 'read', err if err?
im.detectObject "./lib/haarcascade_frontalface_alt.xml", {}, (err, faces) ->
return console.log 'detect', err if err?
console.log faces