opencv4.1.0 安裝與vs2019環境配置


環境配置

廢話不多說,直接上圖


因為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;
}

若成功載入圖片,這任務就完成了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM