Ask Your Question

Revision history [back]

Just do not use the drawmatches function. Comment it out and you will not have it. One way to draw the rectangle will be to take the maximum and minimum x and y values of all the matched points and use those to drawn a rectangle. You could also take the centroid of all the matched points and draw a rectangle around that, just to show where the object was found.