最近发现一个opencv的trick,记录一下 cv2读取灰度视频 cap = cv2.VideoCapture(video_name) while True: status, data = cap.read() if not status: break cv2.resize(data,