#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>//图像处理头文件
using namespace cv;
//摄像头视频采集
//实例化,初始化
int main()
{
//从摄像头读入视频
VideoCapture capture(0);
while (1)
{
Mat frame;
capture >> frame;
imshow("读取视频", frame);
waitKey(30);
}
}