0

我已经配置了在 eclipse 中以 c/c++ 模式运行 open cv 所需的所有库和路径,我已经编写了下面的代码,但我不知道如何构建和调试,我的代码是

 #include "cv.h"
 #include "highgui.h"
//using namespace cv;

int main(int argc, char *argv[])
{
 cvNamedWindow( "Example1", CV_WINDOW_AUTOSIZE );
IplImage* img = cvLoadImage("prado.jpg",1);
cvShowImage("Example1", img );//*/
cvWaitKey(0);
return 0; 
}
4

0 回答 0