provide image to event

This commit is contained in:
Peter Braden 2013-02-26 16:51:45 -08:00
parent 24f255a161
commit 4ca165635e

View File

@ -98,7 +98,7 @@ ods.write = function(m){
this.classifier.detectMultiScale(m, this.classifier.detectMultiScale(m,
function(e, objs){ function(e, objs){
if (e) { throw e } if (e) { throw e }
self.emit('data', objs); self.emit('data', objs, m);
} }
, this.opts.scale, this.opts.neighbors , this.opts.scale, this.opts.neighbors
, this.opts.min && this.opts.min[0], this.opts.min && this.opts.min[1]); , this.opts.min && this.opts.min[0], this.opts.min && this.opts.min[1]);