15 lines
245 B
Python
15 lines
245 B
Python
|
import cv2
|
||
|
|
||
|
video = 'data/video_1.avi'
|
||
|
|
||
|
cap = cv2.VideoCapture(video);
|
||
|
|
||
|
while(True):
|
||
|
ret, frame = cap.read()
|
||
|
|
||
|
cv2.imshow('film', frame)
|
||
|
#Wyjdz po nacisnieciu escape
|
||
|
if cv2.waitKey(33) == 27:
|
||
|
break
|
||
|
|
||
|
cv2.destroyAllWindows()
|