Window10 + OpenCV3.2.0 + VS2017 detailed development environment configuration, window10vs2017
Local Environment: the final result of win10 64-bit OpenCV3.2.0 Visual Studio 2017 is available for test.
OpenCV official: https://opencv.org/releases.html #
I chose opencv3.2.0 Based on Windows. You can download the appropriate version and platform as needed.
After downloading the image description, double-click it to decompress it.
Decompression is the process of installing the OpenCV library, and the reader selects the installation path.
Suggestions
Chinese characters and spaces are not required in the English path.
Write picture description here-right-click "property"-advanced system settings here write picture description find Path edit decompress (install) add the bin Path in the OpenCV Path to the Path system environment variable. Here is the picture description [Suggestion] restart the computer Visual Studio2017 official: reboot. 1. Create a project shortcut: ctrl + shift + write the image description here. If you do not use Visual Studio to create a project, Baidu
2. Create a. cpp File
Shortcut Key: ctrl + shift + a write the image description here. I configure it in Debug x64 and write the image description here. 3. open Property Manager: view = other window = property manager. Write the image description here. Debug x64 right-click "property" and write the image description here. 4. add the include directory vc ++ directory = include directory = select Edit here write image description add. Click the icon indicated by the arrow in the figure. Add the following path (P.S. That is, the previously decompressed (installed) OpenCV path). Write the image description here. 5. Add the library directory.
VC ++ directory = library directory
(P.S. That is, extract (install) The prepared OpenCV path.) write the image description here. 6. Add additional dependencies.
Linker = "input =" additional dependencies
Manually enter opencv_world320d.li
Note]
1. 320 corresponds to OpenCV3.2.0. For other versions, go to the Internet and find your own version to write and Add.
2. The suffix d indicates the Debug mode. If it is the Release mode, remove d. Select Debug mode or Release mode as needed. Here, the image description is written here. opencv3.2.0 and vs2017 development environments have been configured successfully. Write the following code in the project. If the image can be displayed, the configuration is successful.