Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How VS2017 configures OpenCV common properties

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to configure the general properties of OpenCV in VS2017. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

To configure OPENCV in VS environment, it is too troublesome to reconfigure each new project, so we studied how to make a general configuration. Later, the new project can be directly imported into the configuration. The steps are as follows:

New project

Let's first call VS2017 and create an empty C++ project called pixeldemo

Select the item on the right and click on the menu bar above-View-- other windows-- property Management

And then we can see to the right.

Because my machine is a 64-bit system, I choose to add a new project property sheet in Debug | x64, and then set a property file named OpenCV_Debug.

Then double-click OpenCV_Debug

Find two entries including directory and library directory in the VC++ directory

Include the things added in the directory. This is the sdk download path of opencv. Mine is placed on the picture. Please find the corresponding location after downloading by yourself.

Library directory additions

And then we find the link on the left-- input, and we see an additional dependency on the right.

One more opencv_world341d.lib item needs to be added here

This needs to be entered manually, which is manually added after we click to edit it. The file name is the corresponding file name in the sdk of the opencv we downloaded, because we have already added the directory and library directory before, so we can enter the file name directly here.

After editing, click directly to confirm.

In this way, when you create a new opencv project, you can choose to add the current property sheet in the right chain of the property manager, find the OpenCV_Debug we just saved and import it directly.

This is the end of this article on "how to configure OpenCV general properties for VS2017". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report