import numpy
import cv2
vid=cv2.VideoCapture("katy.avi")
cv2.waitKey(5000)
if vid.isOpened():
print "k"
I am running this code on windows 8.1, Python 2.7 and numpy 1.9.1.
import numpy
import cv2
vid=cv2.VideoCapture("katy.avi")
cv2.waitKey(5000)
if vid.isOpened():
print "k"
I am running this code on windows 8.1, Python 2.7 and numpy 1.9.1.
Copyright © 2021 Jogjafile Inc.
I think I remember that pressing a key will trigger the end of waitKey(), thus skipping the 5s