我试图执行这个简单的代码,
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main()
{
Mat image = imread("D:\Project\OCVtestCode\test4\test4\1.jpg");
namedWindow("img", WINDOW_AUTOSIZE);
imshow("img", image);
waitKey(0);
return 0;
}
但我收到此错误消息:
Unhandled exception at 0x00007FFB59103C58 in test4.exe: Microsoft C++ exception: cv::Exception at memory location 0x00000089B3F7F380. occurred