node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

Detect rectangles

Open asleepace opened this issue 7 years ago • 0 comments

Hi awesome library, I was wondering if there is a way to detect rectangles instead of faces. Is there some sort of option for detectObject like:

im.detectObject(cv.RECTANGLE_CASCADE, {}, (err2, faces) => {
        for (var i=0; i<faces.length; i++) {
          var x = faces[i]
          im.ellipse(x.x + x.width/2, x.y + x.height/2, x.width/2, x.height/2);
        }
        im.save('./out.jpg');
      })/;

asleepace avatar May 11 '18 23:05 asleepace