环境配置

废话不多说,直接上图
opencv4.1.0 安装与vs2019环境配置
opencv4.1.0 安装与vs2019环境配置
opencv4.1.0 安装与vs2019环境配置

因为oprncv4.1.0只支持x64,所以务必以下选项调为x64
opencv4.1.0 安装与vs2019环境配置

opencv4.1.0 安装与vs2019环境配置

最后用以下代码测试

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

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

相关文章:

  • 2021-07-01
  • 2021-07-31
  • 2022-01-10
  • 2021-11-21
  • 2021-04-09
  • 2021-10-13
  • 2022-01-07
猜你喜欢
  • 2021-07-17
  • 2021-06-08
  • 2021-07-10
  • 2022-12-23
  • 2022-01-05
  • 2021-06-09
  • 2021-05-31
相关资源
相似解决方案