1 | initial version |
You are missign waitKey(): import cv2
cap = cv2.VideoCapture("road.avi")
while cap.isOpened():
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
2 | No.2 Revision |
You are missign missing waitKey():
import cv2
cap = cv2.VideoCapture("road.avi")
while cap.isOpened():
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows()
3 | No.3 Revision |
You are missing waitKey():
import cv2waitKey():
import cv2
cap = cv2.VideoCapture("road.avi")
while cap.isOpened():
ret, frame = cap.read()
cv2.imshow('frame', frame)
if cv2.waitKey(1) == ord('q'):
break
cap.release()
cv2.destroyAllWindows()