[ 개발 환경 ]
OS : Windows 10
OpenCV : 3.3.0
IDE : Visual Studio 2015
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/objdetect.hpp>
#include <iostream>
using namespace std;
using namespace cv;
bool isPressed = false;
int main(void)
{
VideoCapture cap("C:\\press_another.mp4");
if (!cap.isOpened())
{
cout << "Error" << endl;
return 0;
}
while(1)
{
Mat frame;
cap.read(frame);
imshow("Video", frame);
}
return 0;
}