want to detect rectangle in a image using opencv-python?
here, i tried to detect rectangle from an image and want to save it,but image has two rectangles what i need to save is the bigger one for each image here the smaller one is saving as new image. How to get the bigger one.
you have width and heigh of rect - so it should be easy to decide which one is bigger - essentially what berak posted with computing the area of the rect.
Absolutely, holger.