vs配置opencv
1、error LNK2019: 无法解析的外部符号 "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z),该符号在函数 "void __cdecl mouseEvent(int,int,int,int,void *)" (?mouseEvent@@YAXHHHHPAX@Z) 中被引用
原因:库目录没有找到,在附加库目录里面opencv_world340.lib和opencv_world340d.lib两个都加上
2、但是出现如下问题:
转到..\opencv\build\x64\v14\bin目录下,将相关的dll拷贝到window操作系统目录下C:\Windows\System32
3、缺少如下的dll,在opencv中没有找到
控制面板——卸载与更改程序——选中如下文件,右键更改——修复
还是没解决,下载相关的dll,放到 拷贝到window操作系统目录下C:\Windows\System32
下载网站:https://cn.dll-files.com/
解决!!!
4、图片路径问题