otwieranie pliku video

This commit is contained in:
Krzysztof Strzelecki 2020-02-13 12:54:14 +01:00
parent b0bb10f347
commit 1c3faff85f
2 changed files with 15 additions and 0 deletions

BIN
data/video_1.avi Normal file

Binary file not shown.

15
main.py Normal file
View File

@ -0,0 +1,15 @@
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()