#include<opencv2opencv.hpp> using namespace cv; int main() { //读取视频 VideoCapture capture; capture.open("test01.mp4"); //循环每一帧 while (1) { Mat frame; capture >> frame; imshow("读取视频", frame); waitKey(30); } return 0; }