OpenCV:使用VideoCapture类进行读取视频

// readvideo.cpp : 定义控制台应用程序的入口点。

#include   
#include "stdafx.h"
#include 
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类进行读取视频)