Programming/openCV

7. 비디오 출력하기

snoohey 2017. 4. 4. 16:36

#include <opencv2/imgcodecs.hpp>  

#include <opencv2/imgproc.hpp>  

#include <opencv2/highgui.hpp>  

#include <iostream>  


using namespace cv;

using namespace std;


int main()

{

VideoCapture cap1("image/Wildlife.wmv");


Mat frame1;

namedWindow("video", 1);


while(true){

cap1 >> frame1;

imshow("video", frame1);

if (waitKey(30) == 'q') break;  

}


return 0;

}