javascript - How to merge make PhotoBooth and face detection to work together? -
this simple solution have not been able figure out @ all, i'm trying photobooth.js , face detection script seen here face detection javascript work in same page, want detect faces within photobooth window. have working demo of photobooth on jsfiddle here: jsfiddle photobooth demo
from understand given example code detect faces need id canvas correctly? example code
var face_detect = require('face_detect'), canvas = require('canvas'); // ... initialize canvas object ... var result = face_detect.detect_objects({ "canvas" : mycanvas, "interval" : 5, "min_neighbors" : 1 }); console.log('found ' + result.length + ' faces.'); (var = 0; < result.length; i++){ var face = result[i]; console.log(face); }
so how go getting example code work photobooth? appreciated newbie out!
Comments
Post a Comment