OpenCV3.3 VS环境配置#
vc++目录:
① 包含目录:
D:\opencv-3.3.1\source\build\install\include
D:\opencv-3.3.1\source\build\install\include\opencv
D:\opencv-3.3.1\source\build\install\include\opencv2
②库目录:
D:\opencv-3.3.1\source\build\install\x86\vc11\lib
链接器 -> 输入 -> 附加依赖项:
opencv_calib3d331d.lib
opencv_core331d.lib
opencv_dnn331d.lib
opencv_features2d331d.lib
opencv_flann331d.lib
opencv_highgui331d.lib
opencv_imgcodecs331d.lib
opencv_imgproc331d.lib
opencv_ml331d.lib
opencv_objdetect331d.lib
opencv_photo331d.lib
opencv_shape331d.lib
opencv_stitching331d.lib
opencv_superres331d.lib
opencv_video331d.lib
opencv_videoio331d.lib
opencv_videostab331d.lib
头文件包含:
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>