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

若成功载入图片,这任务就完成了

posted on 2019-05-06 23:58  DemoJi  阅读(6661)  评论(0编辑  收藏  举报

导航