Visual Studio 2017 + OpenCV environment setup tutorial, 2017 opencv

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.