// readvideo.cpp : 定义控制台应用程序的入口点。
#include <cv.h>
#include "stdafx.h"
#include <opencv2\opencv.hpp>
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
VideoCapture capture;
capture.open("E:\\Workspace\\OpenCV\\test\\video\\video.avi");
while(true)
{
Mat frame;
capture>>frame;
imshow("readvideo",frame);
waitKey(10);
}
return 0;
}
OpenCV:使用VideoCapture类进行读取视频
最新推荐文章于 2024-04-17 07:30:00 发布