projekt_PP/main.py

15 lines
245 B
Python
Raw Normal View History

2020-02-13 12:54:14 +01:00
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()