Permalink
Browse files

Trying to repro #20

  • Loading branch information...
1 parent ceb4d1f commit cb6a8c48167114d0c2b96379aa066ca04cfd9467 @peterbraden committed Oct 30, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 test/temp.js
View
@@ -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);
+ });
+});
+

0 comments on commit cb6a8c4

Please sign in to comment.