First time here? Check out the FAQ!
answered 2019-01-22 01:27:19 -0600
you filter them by area:
largest_area=0 largest_rect = None for r in rects: a = cv2.contourArea(r) if a > largest_area: largest_area = a largest_rect = r