The OpenCV library provides a function that returns a set of contours for a binary (thresholded) image. The contourArea() can be applied to find associated areas.
Is the list of contours out outputted by findContours() ordered in terms of area by default? If not, does anyone know of a cv2 function that orders a list of contours by area?
Please provide responses in Python, not C.
greater
function to compare areas. - Mikigreater
comparingcontourArea()
of the two contours. - Miki