Python opencv drawContours does not show anything

后端 未结 4 506
南旧
南旧 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:16

    i too had the same problem. The thing is it shows, but too dark for our eyes to see. Solution: change the colour from (0,255,0) (for some weird reason, i too had give exactly the same color!) to (128,255,0) (or some better brighter colour)

提交回复
热议问题