Python opencv drawContours does not show anything

后端 未结 4 516
南旧
南旧 2020-12-24 08:51

I followed the tutorial at this page but nothing seems to happen when the line cv2.drawContours(im,contours,-1,(0,255,0),3) is executed. I was expecting to see

4条回答
  •  忘掉有多难
    2020-12-24 09:02

    You have to do something to the effect of:

    cv2.drawContours(im,contours,-1,(255,255,0),3)
    cv2.imshow("Keypoints", im)
    cv2.waitKey(0)
    

提交回复
热议问题