mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
readd cascadetests
This commit is contained in:
parent
bf3b39beb0
commit
473b3be7d7
@ -102,6 +102,7 @@ vows.describe('Smoke Tests OpenCV').addBatch({
|
||||
//assert.equal(buf.toString('base64'), buf0.toString('base64'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -127,7 +128,7 @@ vows.describe('Smoke Tests OpenCV').addBatch({
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
, "CascadeClassifier": {
|
||||
topic : require('../lib/opencv')
|
||||
|
||||
@ -138,7 +139,7 @@ vows.describe('Smoke Tests OpenCV').addBatch({
|
||||
, "face detection": {
|
||||
topic : function(){
|
||||
var cv = require('../lib/opencv')
|
||||
, im = new cv.Image("./examples/mona.jpg")
|
||||
, im = cv.readImage("./examples/mona.jpg")
|
||||
, cascade = new cv.CascadeClassifier("./examples/haarcascade_frontalface_alt.xml");
|
||||
|
||||
cascade.detectMultiScale(im, this.callback, 1.1, 2, [30, 30]);
|
||||
@ -153,5 +154,5 @@ vows.describe('Smoke Tests OpenCV').addBatch({
|
||||
}
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
}).run();
|
||||
Loading…
x
Reference in New Issue
Block a user