環境配置
廢話不多說,直接上圖
因為oprncv4.1.0只支持x64,所以務必以下選項調為x64
最后用以下代碼測試
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int main()
{
Mat img = imread("C:\\Users\\Administrator\\Desktop\\zhuying.jpeg");
if (img.empty())
{
printf("Could not find the image!\n");
return - 1;
}
imshow("ImputImage", img);
waitKey(0);
return 0;
}
若成功載入圖片,這任務就完成了