安装Opencv时遇到问题,依据教程
https://blog.csdn.net/qq_41277822/article/details/104018866
系统path变量:
VS编译器包含目录配置:
VS编译器库目录配置:
VS编译器附加依赖项配置:
代码:
//读取图片并显示
#include "stdio.h"
#include<iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
int main()
{
Mat img = imread("E:\\1.bmp");
namedWindow("测试opencv");
imshow("测试opencv", img);
cvWaitKey(6000);
}
错误报告: