Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

cv2 waitkey

cap = cv2.VideoCapture(0)

while True:
      ret, frame = cap.read() #returns ret and the frame
      cv2.imshow('frame',frame)

      if cv2.waitKey(1) & 0xFF == ord('q'):
          break
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #waitkey
ADD COMMENT
Topic
Name
2+4 =