Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Remove contours/bounding rect with an area < n

How can I iterate through a list of contours and remove any contours that don't have an area of at least n?

if contour(i).area < 500 {
    contour.remove(i)
}

Remove contours/bounding rect with an area < n

How can I iterate through a list of contours and remove any contours that don't have an area of at least n?

if contour(i).area < 500 {
    contour.remove(i)
}