Home > Back-end >  The problem of opencv, directly
The problem of opencv, directly

Time:09-29




#include
#include
# define GLUT_DISABLE_ATEXIT_HACK

using namespace cv;
Void Winmain ()
{
IplImage * SRC;
SRC=https://bbs.csdn.net/topics/cvLoadImage (" Lena. JPG ");//here will Lena. JPG and Lena. CPP files in the same folder
CvNamedWindow (" Lena ", CV_WINDOW_AUTOSIZE);
CvShowImage (" Lena "SRC);
CvWaitKey (0);
CvDestroyWindow (" Lena ");
CvReleaseImage (& amp; The SRC);
}

CodePudding user response:

Your problem no description is clear, look from you compile error messages should be connect library is wrong, you see if the library path is not set,

CodePudding user response:

With Mat, rather than IpIImage, replace the rest to follow

CodePudding user response:

The first in the past, this error message seems to be because you do not have to import in the corresponding XXXX. The lib files to cause

CodePudding user response:

OpenCV in addition to setting the include path and the lib path
Also in the link editor - & gt; Input - & gt; Attachment in written to the corresponding dependencies.lib file name