@CrazyHenry
2018-03-24T10:22:56.000000Z
字数 1079
阅读 2176
vvvvOpenCV学习
- Author:李英民 | Henry
- E-mail: li
_
yingmin@
outlookdot
com- Home: https://liyingmin.wixsite.com/henry
快速了解我: About Me
转载请保留上述引用内容,谢谢配合!
Win Pack
二进制文件
D:\opencvlib\opencv\build\bin
D:\opencvlib\opencv\build\x64\vc14\bin
D:\opencvlib\opencv\build\x64\vc15\bin
重启电脑
Ctrl+Shift+N
)Ctrl+Shift+A
)Debug->x64
Debug x64
右键“属性”
vc++目录=》包含目录=》选择编辑
D:\opencvlib\opencv\build\include
D:\opencvlib\opencv\build\include\opencv
D:\opencvlib\opencv\build\include\opencv2
添加以上目录即可!
8. VC++目录=》库目录
D:\opencvlib\opencv\build\x64\vc14\lib
添加以上目录即可!
9. 链接器=》输入=》附加依赖项
手动敲入 opencv_world341d.lib
#include <opencv2/opencv.hpp>
#include <iostream>
using namespace std;
using namespace cv;
int main()
{
Mat image = imread("D:\\OutPutResult\\OpenCVWorkPlace\\OpencvTest\\OpencvTest\\2.jpg"); //存放自己图像的路径
imshow("显示图像", image);
waitKey(0);
return 0;
}