#include <opencv2\opencv.hpp>
using 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;
}
功能2:播放视频 + 摄像头视频
猜你喜欢
转载自blog.csdn.net/u011473714/article/details/88231174
今日推荐
周排行