当前位置:网站首页>Machine vision series 3:vs2019 opencv environment configuration
Machine vision series 3:vs2019 opencv environment configuration
2022-07-29 04:13:00 【Arvin L】
List of articles
Chapter one :Visual Studio 2019 Dynamic link library DLL establish
Chapter two :VS Dynamic link library DLL debugging
The third chapter :VS2019 OpenCV Environment configuration
Catalog
Two 、 Environment variable Settings
3、 ... and 、VS Project property configuration
3. The new project loads the properties document
Preface
Environmental Science :visual studio 2019;OpenCV4.5.5
One 、OpenCV download ?
Official website ——Library——Releases—— Corresponding version Sources download , Then install


Two 、 Environment variable Settings
My computer —— attribute —— Advanced system setup —— environment variable ——Path——OpenCV route
E:\Program Files (x86)\env\opencv4_5_5\build\x64\vc15\bin

If you do not set the environment variable, you need to set the corresponding DLL Put it in the compilation path of the solution , Add environment variables directly without considering publishing suggestions .
Put the path opencv4_5_5\build\x64\vc15\bin Medium .dll Copied to the Debug Directory

3、 ... and 、VS Project property configuration
1. Property Manager
Configure with property manager , Will generate a .props file , The next new project can be imported directly , No need to reconfigure .
View —— Properties window , Open the property manager , Right click Debug or Release Add new project property sheet

Set the file name and save address , For the next project, you can add the existing property sheet and use it directly .
2. Configure property sheet
2.1 VC++ Catalog
Contains the directory —— add to OpenCV In the installation path include and include\opencv2

The library catalog ——OpenCV In the installation directory x64\vc15\lib

2.2 The linker —— Input
Additional dependency —— write in x64\vc15\lib Medium .lib file
( notes :OpenCV4 Don't put it at the same time Debug and Release Two , Will report a mistake Debug——opencv_world455d.lib)

3. The new project loads the properties document

In property manager , Right click in the corresponding mode to add an existing property sheet . Property Manager ——Debug—— Add an existing property sheet
summary
Property manager can manage property files . There is no need to reconfigure every project
边栏推荐
- 一个公司的面试笔记
- C语言力扣第61题之旋转链表。双端队列与构造循环链表
- Pat a1069/b1019 the black hole of numbers
- C语言:浅谈各种复杂的声明
- Who can elaborate on the semi consistent read under mysqlrc and how to reduce the deadlock probability?
- Value transmission and address transmission of C language, pointer of pointer
- Mmdetection preliminary use
- What the hell is this error? It doesn't affect the execution result, but it always reports errors when executing SQL... Connecting maxcomputer uses
- Const read only variable constant
- Object array merges elements according to a field
猜你喜欢

Object array merges elements according to a field

Mmdetection preliminary use
![[principle] several ways of horizontal penetration](/img/fc/2ef7dd6ebc5c0bd8f7d302d8b596d6.png)
[principle] several ways of horizontal penetration

HCIP BGP

Object detection: object_ Detection API +ssd target detection model

The principle of inverse Fourier transform (IFFT) in signal processing

BGP的基础配置---建立对等体、路由宣告

Copy products with one click from Taobao, tmall, 1688, wechat, jd.com, Suning, taote and other platforms to pinduoduo platform (batch upload baby details Interface tutorial)

伏英娜:元宇宙就是新一代互联网!

安装ros的laser_scan_matche库所遇到的问题(一)
随机推荐
The principle of inverse Fourier transform (IFFT) in signal processing
C语言:枚举知识点总结
数据源是SQL server ,我要配置日期字段 updateDate 最后两天日期的增量数据,做增
对一个元素使用多种变形的方法
Rhel8 patch package production
初识C语言(3)
C language: getchar () and cache
Install the laser of ROS_ scan_ Problems encountered in match library (I)
淘宝商品详情接口(商品详情页面数据接口)
C语言:typedef知识点总结
Wechat applet monitors sliding events on the screen
Problems encountered in vscode connection SSH
C declaration and initialization and assignment
[paper translation] vectornet: encoding HD maps and agent dynamics from vectorized representation
Why do I delete the original record (OP d) and then add a new one in Kafka when I update MySQL data
编译与链接
Three tier architecture of enterprise network
C语言:浅谈各种复杂的声明
Codeforces Round #810 (Div. 2) D. Rain (线段树差分)
Locally call tensorboard and Jupiter notebook on the server (using mobaxterm)