Visual Studio 2017 + OpenCV environment setup tutorial, 2017 opencv
The OpenCV environment building tutorial is for your reference. The specific content is as follows:
OpenCV package preparation
: Http://opencv.org/downloads.html
Find a Sample on the official website:
Http://docs.opencv.org/3.2.0/examples.html
1:
2:
3: copy the code on the official website: ffilldemo. cpp
Ah !! How to report so many errors and check whether the source file of opencv cannot be found. So, if it is less, let's add it.
After being added, we found that:
The following settings are required:
Problems found after setting:
Problems found after setting:
You need to make the following settings to put the two Lib files into the project source file directory ....
After the settings, it is found that the settings are not good:
The prompt should be changed to x64. After setting, an error is reported.
We found that the source file of opencv could not be found. After the platform was set to x64, the previous settings were lost. Reset it.
(1) property page => VC ++ directory => include directory => Edit
New:
C: \ opencv \ build \ include \ opencv2
C: \ opencv \ build \ include \ opencv
C: \ opencv \ build \ include
(2)
Linker-"input =" additional dependencies
New:
Opencv_world320.lib
Opencv_world320d.lib
After resetting, re-production, and finally production was successful
It's not easy to set it up.
The above is all the content of this article. I hope it will be helpful for your learning and support for helping customers.