Difference in output with waitKey(0) and waitKey(1)

前端 未结 5 1489
花落未央
花落未央 2020-12-16 11:12

I\'ve just begun using the OpenCV library for Python and came across something I didn\'t understand.

cap = cv2.VideoCapture(0)

while True:
      ret, frame =         


        
5条回答
  •  醉酒成梦
    2020-12-16 12:04

    cv2.waitkey(1) is being used in while loop.It shows the output for 1msec but because of infinite while loop it is the sequence of images that are perceived by our brain as a single continuos video.

    Hope this helped.

提交回复
热议问题