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 to configure OpenCV with VisualStudio2019

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

Share

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

This article shows you how to implement VisualStudio2019 configuration OpenCV, the content is concise and easy to understand, absolutely can make your eyes bright, through the detailed introduction of this article, I hope you can get something.

Configure 0x01 preparation

Download opencv, official website: https://opencv.org/releases/#

After downloading, install it yourself

0x02 configure system environment

Find advanced system settings

Path variable Click Edit

Add the following values (according to where your opencv is installed)

0x03 copy Fil

Copy the following three files to C:\ Windows\ System32

Note: I read an article saying that opencv_world3416.dll and opencv_world3416d.dll are added under the SysWOW64 file, but there is no need to add opencv_world3416.dll and opencv_world3416d.dll in system32, but if I do this, I will not find the errors in these two files. If you report errors in accordance with the above, add opencv_world3416.dll and opencv_world3416d.dll to the SysWOW64 file.

0x04 configuration VisualStudio2019

View-other windows-property Manager, find Debug | X64

Right mouse button Debug | X64-attribute-VC++ directory-General-include directory

Add three paths (according to your own opencv installation path), with an editor in the drop-down:

Add to VC++ directory-General-Library directory

Linker-input-add to additional dependencies

If the version of these two files is different from mine, the file name will be different. You should write these two files according to your own.

Environment configuration completed

test

Note: the position of the picture in the code should be modified according to your own.

# include # include / / contains the basic data structure of openCV, the basic function of array operation # include / / image interface, and video capture can also be written as # include # include / / image transformation, filtering histogram, shape description and other function libraries using namespace std;using namespace cv;int main (char argc, char* argv []) {cout

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

Development

Wechat

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

12
Report