From cb6a8c48167114d0c2b96379aa066ca04cfd9467 Mon Sep 17 00:00:00 2001 From: Peter Braden Date: Mon, 29 Oct 2012 22:18:14 -0700 Subject: [PATCH] Trying to repro #20 --- test/temp.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/temp.js diff --git a/test/temp.js b/test/temp.js new file mode 100644 index 0000000..c1f352d --- /dev/null +++ b/test/temp.js @@ -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); + }); +}); +