我写了一些程序。但是他们没有工作..现在,我有一个基本程序。编译没问题。
1>------ Build started: Project: tracker6, Configuration: Debug Win32 ------
1> Skipping... (no relevant changes detected)
1> trancker6.cpp
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
但是我然后单击运行按钮:
This program is out of date:
tracker6 - Debug Win32
Would you like to build it?
我说是的。在那之后:
Unhandled exception at 0x0321ef3d in tracker6.exe: 0xC0000005: Access violation
reading location 0x00000000.
Break Continue Ignore
我说继续,但它不起作用。这个错误又来了。
请帮助我运行此代码:
#include<opencv\highgui.h>
int main( int argc, char** argv ) {
cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture( argv[1] );
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" );
}