Created
January 20, 2012 02:55
Revisions
-
peterbraden revised this gist
Jan 20, 2012 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,5 @@ var faces = face_cascade.detectMultiScale(im, function(err, faces){ var x = faces[i] im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2); } im.save('./out.jpg'); }); -
peterbraden revised this gist
Jan 20, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -10,4 +10,4 @@ var faces = face_cascade.detectMultiScale(im, function(err, faces){ } im.save('./out.jpg'); }); -
peterbraden created this gist
Jan 20, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ var cv = require('opencv') var im = new cv.Image("./examples/test.jpg") , face_cascade = new cv.CascadeClassifier("./examples/haarcascade_frontalface_alt.xml") var faces = face_cascade.detectMultiScale(im, function(err, faces){ for (var i=0;i<faces.length; i++){ var x = faces[i] im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2); } im.save('./out.jpg'); }, 1.1, 2, [30, 30]);