I\'m trying to display a filled contour using the cv2.drawContours function in OpenCV. I\'ve developed a list of contours from an edge image derived from a
cv2.drawContours
The function takes ArrayOfArrays as input. Try: cv2.drawContours(mask, [cnt], -1, (0,255,255), -1) instead of: cv2.drawContours(mask, cnt, -1, (0,255,255), -1).
ArrayOfArrays
cv2.drawContours(mask, [cnt], -1, (0,255,255), -1)
cv2.drawContours(mask, cnt, -1, (0,255,255), -1)