opencv学习之视频读写
cv2.VideoCapture()视频读入,cv2.VideoWrite()视频存储import numpy as npimport cv2cap = cv2.VideoCapture("01.mp4")while(cap.isOpened()): ret , frame = cap.read() #这里必须加上判断视频是否读取结束的判断,否则播放到最后一帧的时...