node-opencv
node-opencv copied to clipboard
Detect rectangles
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');
})/;