读取视频并显示:
import cv2
vide = cv2.VideoCapture('video2img/test0.flv')
while True:
ret, frame = vide.read() # 读
cv2.imshow("capture", frame)
读取视频并显示:
import cv2
vide = cv2.VideoCapture('video2img/test0.flv')
while True:
ret, frame = vide.read() # 读
cv2.imshow("capture", frame)