1

我用opencv在vs2010中创建了一个项目,很简单,但是当我运行它时出现错误:

在此处输入图像描述

这是我的代码:

#include "highgui.h"

int main() { 
cvNamedWindow( "VideoShow", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture("aa.avi");
IplImage* frame;
while(1) {
    frame = cvQueryFrame( capture );
    if( !frame ) break;
    cvShowImage( "VideoShow", frame );
    char c = cvWaitKey(33);
    if( c == 27 ) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "VideoShow" );
return 0;
}
4

0 回答 0