// MY.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <opencv.hpp>
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
::VideoCapture capture("lss.mkv");
while(1)
{
Mat frame;
capture>>frame;
imshow("读取视频",frame);
waitKey(10);
}
return 0;
}
//
#include "stdafx.h"
#include <opencv.hpp>
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
::VideoCapture capture("lss.mkv");
while(1)
{
Mat frame;
capture>>frame;
imshow("读取视频",frame);
waitKey(10);
}
return 0;
}