给你个代码试试吧
#include "stdafx.h"
#include "highgui.h"
int main( int argc, char** argv )
{
cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture("video.avi");
IplImage* frame;
while(1)
{
frame = cvQueryFrame(capture);
if(!frame)
break;
cvShowImage("Example2",frame);
char c= cvWaitKey(33);
if(c==27)
break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "Example2" );
}
代码呢?
cvNamedWindow定义一个窗口,然后cvshowImg这个图片,不知道lz的代码是啥,具体报什么错?