VisualStudio2017配置OpenCV3

OpenCV3对比2版本添加了一些功能,如果需要配置OpenCV3.1库

去opencv官网下载相对应的版本  我这里下载的是opencv3.1

然后去VS里面添加新属性表(以后就不用每次配置。直接点击添加现有的属性表 找到之前的配置属性表即可)

 

 

选择的模块应与最上面的选项相同,一般选择Debug模式x64位(我这里是为了生成dll文件使用python对C++程序进行调用才设置的Release模式)

 

 

包含目录

D:\opencv3.1.0\tools\opencv_contrib\install\include


库目录

D:\opencv3.1.0\tools\opencv_contrib\install\lib

D:\opencv3.1.0\tools\opencv_contrib\install\staticlib

链接器->输入

opencv_aruco310.lib

opencv_bgsegm310.lib

opencv_bioinspired310.lib

opencv_calib3d310.lib

opencv_ccalib310.lib

opencv_core310.lib

opencv_datasets310.lib

opencv_dnn310.lib

opencv_dpm310.lib

opencv_face310.lib
opencv_features2d310.lib

opencv_flann310.lib

opencv_fuzzy310.lib

opencv_highgui310.lib

opencv_imgcodecs310.lib

opencv_imgproc310.lib

opencv_line_descriptor310.lib

opencv_ml310.lib

opencv_objdetect310.lib

opencv_optflow310.lib

opencv_photo310.lib

opencv_plot310.lib

opencv_reg310.lib

opencv_rgbd310.lib

opencv_saliency310.lib

opencv_shape310.lib

opencv_stereo310.lib

opencv_stitching310.lib

opencv_structured_light310.lib

opencv_superres310.lib

opencv_surface_matching310.lib

opencv_text310.lib

opencv_tracking310.lib

opencv_ts310.lib

opencv_video310.lib

opencv_videoio310.lib

opencv_videostab310.lib

opencv_xfeatures2d310.lib

opencv_ximgproc310.lib

opencv_xobjdetect310.lib

opencv_xphoto310.lib

以后每次再创建新项目使用相同的库就可以直接点击添加现有的属性表了

 

OpenCV2配置大致相同 但属性表配置不太一致

 

posted @ 2019-01-17 11:06  henu小白  阅读(343)  评论(0编辑  收藏  举报