相关说明
这篇文档是接前篇[20160711][neven代码移植Windows]和[20160711][VS2012配置OpenCV2.4.9]下完成,首先需要通过篇文档编译出neven动态链接库和安装opencv动态链接库。
操作步骤
1.拷贝编译好的源代码和库文件到opencv目录下
2.新建VS工程
3.包含OpenCV动态链接库
桌面计算机右键->属性->高级系统管理->环境变量->系统变量,注意修改后需要注销系统
C:\Program Files\opencv\build\x86\vc11\bin;
调试->属性->配置属性->VC++目录->包含目录
C:\Program Files\opencv\build\include
C:\Program Files\opencv\build\include\opencv
C:\Program Files\opencv\build\include\opencv2
调试->属性->配置属性->VC++目录->库目录
C:\Program Files\opencv\build\x86\vc11\lib
调试->属性->配置属性->链接器->输入->附加依赖项
opencv_ml249d.lib
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_objdetect249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_nonfree249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_videostab249d.lib
opencv_objdetect249.lib
opencv_ts249.lib
opencv_video249.lib
opencv_nonfree249.lib
opencv_ocl249.lib
opencv_photo249.lib
opencv_stitching249.lib
opencv_superres249.lib
opencv_videostab249.lib
opencv_calib3d249.lib
opencv_contrib249.lib
opencv_core249.lib
opencv_features2d249.lib
opencv_flann249.lib
opencv_gpu249.lib
opencv_highgui249.lib
opencv_imgproc249.lib
opencv_legacy249.lib
opencv_ml249.lib
4.包含neven动态链接库
拷贝neven.dll和nevend.dll到OpenCV相关目录中
C:\Program Files\opencv\build\x86\vc11\bin
调试->属性->配置属性->VC++目录->包含目录
C:\Program Files\opencv\neven
C:\Program Files\opencv\neven\FaceRecEm\common\src
拷贝neven.lib和nevend.lib到OpenCV相关目录中
C:\Program Files\opencv\build\x86\vc11\lib
调试->属性->配置属性->链接器->输入->附加依赖项
neven.lib
nevend.lib