必需软件
-
CMake
-
Visual Studio等任何支持C++ compile的软件
-
Matlab
-
OpenCV
[https://github.com/opencv/opencv/archive/3.4.0.zip]:
和OpenCV-contrib
[https://github.com/opencv/opencv_contrib/archive/3.4.0.zip]:
CMake操作
-
打开CMake,在source code中选择OpenCV文件地址(保证该文件夹内有CMakeLists.txt文件)在build the binaries中选择编译目标文件夹。选择编译器(64位)单击
Configure
-
取消选择
BUILD_DOCS
,BUILD_EXAMPLES
,BUILD_JAVA
,BUILD_PACKAGE
,BUILD_PERF_TESTS
,BUILD_TESTS
BUILD_opencv_apps
,BUILD_opencv_cuda*
,BUILD_opencv_cudev
,BUILD_opencv_java
,BUILD_opencv_js
,BUILD_opencv_python*
,BUILD_opencv_ts
,BUILD_opencv_viz
,BUILD_opencv_world
WITH_CUDA
,WITH_CUFFT
,WITH_CUBLAS
,WITH_NVCUVID
,WITH_MATLAB
,WITH_VTK
-
选择
OPENCV_ENABLE_NONFREE
,在OPENCV_EXTRA_MODULES_PATH
中选中opencv_contrib
下的modules
文件夹。
本文由 Xdmegumi 创作,采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
最后编辑时间为:2018-10-06 23:41:30