[공유] OpenCV 동영상 출력


[공유] OpenCV 동영상 출력

출처 Kelly's Small House.|shylove2456 동영상 출력 ① 영상을 출력하기 위해선 영상의 frame을 잡아와 IplImage형으로 출력하여야 한다. ② 영상 자체는 CvCapture 구조체로 얻어올 수 있다. #include "stdafx.h" #include "highgui.h" int main() { cvNamedWindow( "Normal", CV_WINDOW_AUTOSIZE ); CvCapture* capture = cvCreateFileCapture( "test.avi" ); IplImage* frame; char c; while(1) { cvGrabFrame(capture); frame = cvRetrieveFrame(capture); //frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "Normal", frame ); c = cvWaitKey(33); if( c == 0x1b) b...



원문링크 : [공유] OpenCV 동영상 출력