mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Trying to repro #20
This commit is contained in:
parent
ceb4d1f5e0
commit
cb6a8c4816
21
test/temp.js
Normal file
21
test/temp.js
Normal file
@ -0,0 +1,21 @@
|
||||
var buf, cv;
|
||||
|
||||
cv = require('../lib/opencv');
|
||||
var fs = require('fs')
|
||||
|
||||
buf = fs.readFileSync('../examples/stuff.png')
|
||||
|
||||
var cb = function(){console.log("OK")}
|
||||
|
||||
cv.readImage(buf, function(err, im) {
|
||||
if (err != null) {
|
||||
return cb(err);
|
||||
}
|
||||
return im.detectObject("../data/haarcascade_frontalface_alt.xml", {}, function(err, faces) {
|
||||
if (err != null) {
|
||||
return cb(err);
|
||||
}
|
||||
return cb(null, faces);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user