摘要:
View Code 1 int main( int argc, char** argv ) { 2 cvNamedWindow( "Example2_9", CV_WINDOW_AUTOSIZE ); 3 CvCapture* capture; 4 if (argc==1) { 5 capture = cvCreateCameraCapture( 0 ); 6 } else { 7 capture = cvCreateFileCapture( argv[1] ); 8 } 9 assert( capture !=... 阅读全文
摘要:
View Code 1 IplImage* img = cvLoadImage( argv[1] );2 cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE );3 cvShowImage("Example1", img );4 cvWaitKey(0);5 cvReleaseImage( &img );6 cvDestroyWindow("Example1");View Code 1 #pragma comment(lib, "opencv_highgui244d.lib&qu 阅读全文