Win10系统Qt5.12.9配置OpenCV4.5.1库教程 Qt,OpenCV,Cmake详细下载安装教程 软件准备 首先要说的是装软件还是装最新的好,不用考虑各种软件的版本对应问题,都是最新版的情况下它们互相之间一定是兼容的,下边具体来说下需要的几个软件。.
- Setting up OpenCV with Cmake GUI. Download OpenCV and Cmake; Build opencv with cmake Press configure, choose visual studio 2015, finish; Then press generate; Open OpenCV.sln under build/ Build it using Debug, Release; right click build; switch to Release mode and build again Windows Setting up environment variable; add opencv/bin into PATH.
- The main idea here is to download the opencv and opencv-contrib package from the source. Then configure and compile (build) the packages through CMake and visual studio in a folder named.
General procedure¶
Start the GUI version of CMake (cmake-gui).
Select the folder
C:OpenCVsources
as the source directory.Select the folder
C:OpenCVbuilds
as the build directory.Enable the Grouped and Advanced checkboxes just below the build directory name. These will impact the way the packages information will be displayed in the CMake GUI in the following steps.
Press the 'Configure' button. A window pops up, letting you specify the compiler (and IDE) you want to use. Pick Visual Studio 10, 32-bit or 64-bit according to your Matlab version. Select also 'Use default native compilers' and click Finish.
Note
In case you would like to redo all the steps from the beginning (if you made a mistake somewhere, for instance), you can clear CMake cache in the menu option 'File > Delete Cache'.
Canon 1d mark iv shutter count. CMake will start out and based on your system variables will try to automatically locate as many packages as possible. You can modify the packages to use for the build in the WITH > WITH_X menu points (where X is the package abbreviation).
Configure CMake until all the elements are found. Follow the instructions below.
Note
If you don't need it, you might want to deactivate the Python module both in 32-bit and 64-bit versions since it might not build correctly.
Once you are comfortable with your CMake configuration, press Generate and close CMake.
Here is an alternate version of those instructions, but it does not goes as deep in the details as this tutorial: http://seevisionc.blogspot.co.uk/2014/03/compiling-opencv-30-with-matlab-support.html.
Setting up OpenCV with Cmake GUI
- Download OpenCV and Cmake
- Build opencv with cmake
- Press
configure
, choosevisual studio 2015
, finish - Then press
generate
- Open
OpenCV.sln
underbuild/
- Build it using
Debug
,Release
- right click > build
- switch to
Release
mode and build again
- [Windows] Setting up environment variable
- add
/bin
intoPATH
- add new env named
OpenCV_DIR
, value as/build
- it may need logout to apply setting, you can check it by
echo %PATH%
,echo %OpenCV_DIR%
Build with EXTRA MODULES
Opencv Cmake
- In step
2. Build opencv with cmake
, pressconfigure
- Set up
OPENCV_EXTRA_MODULES_PATH
to proper path(/modules
) - Press
configure
again, thengenerate
Here is an alternate version of those instructions, but it does not goes as deep in the details as this tutorial: http://seevisionc.blogspot.co.uk/2014/03/compiling-opencv-30-with-matlab-support.html.
Setting up OpenCV with Cmake GUI
- Download OpenCV and Cmake
- Build opencv with cmake
- Press
configure
, choosevisual studio 2015
, finish - Then press
generate
- Open
OpenCV.sln
underbuild/
- Build it using
Debug
,Release
- right click > build
- switch to
Release
mode and build again
- [Windows] Setting up environment variable
- add
/bin
intoPATH
- add new env named
OpenCV_DIR
, value as/build
- it may need logout to apply setting, you can check it by
echo %PATH%
,echo %OpenCV_DIR%
Build with EXTRA MODULES
Opencv Cmake
- In step
2. Build opencv with cmake
, pressconfigure
- Set up
OPENCV_EXTRA_MODULES_PATH
to proper path(/modules
) - Press
configure
again, thengenerate
To see more details instructions, see opencv_contrib README