no, problem is in your code
use your i
index, not -1
to draw a single contour
also, filtering or sorting the contours list by contourArea() size, and keeping the largest only would be helpful here
no, problem is in your code
use your i
index, not -1
to draw a single contour
also, filtering or sorting the contours list by contourArea() size, and keeping the largest only would be helpful here