本文共 265 字,大约阅读时间需要 1 分钟。
#includeusing namespace cv;using namespace std;int main(){ //读入视频 //VideoCapture capture("face.mp4"); VideoCapture capture(0); //循环显示 while(true) { Mat frame; //定义一个Mat变量,用于存储每一帧的图像 capture>>frame; //读取当前帧 imshow("读取视频",frame); waitKey(10); } return 0;}
转载地址:http://vosws.baihongyu.com/