cv2.drawContours will not draw filled contour

后端 未结 1 1829
我寻月下人不归
我寻月下人不归 2021-01-19 10:33

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

1条回答
  •  醉梦人生
    2021-01-19 11:12

    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).

    0 讨论(0)
提交回复
热议问题