Read Media - opencv cv2 tutorial chapter1
chapter1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import cv2
# img = cv2.imread('Resources/lena.png')
#
#
# cv2.imshow('img', img)
# cv2.waitKey(0)
crap = cv2.VideoCapture('Resources/test_video.mp4')
while True:
flag, img = crap.read()
cv2.imshow('video', img)
if (cv2.waitKey(1)&0xFF) == ord('q'):
break
This post is licensed under CC BY 4.0 by the author.