当前位置:网站首页>vs怎么配置OpenCV?2022vs配置OpenCV详解(多图)
vs怎么配置OpenCV?2022vs配置OpenCV详解(多图)
2022-06-27 06:33:00 【程序媛珂珂】
vs怎么配置OpenCV?这篇文章主要介绍了Visual Studio 2022下载及配置OpenCV4.6.0的详细过程,在这里注意下Win10的64位操作系统,在OpenCV官网下载OpenCV4.6.0,安装的是Win pack,本文通过图文并茂的形式给大家介绍的非常详细,需要的朋友可以参考下。
2022vs配置OpenCV详解
一、Visual Studio2022下载



Win10的64位操作系统,直接在VS官网下载VisualStudioCommunity,默认安装,安装的是VisualStudioCommunity2022:
(安装的【工作负载】步骤时选的是【使用C++的桌面开发】和【通用Windows平台开发】和其它工具集中的【VisulStudio扩展开发】)
二、OpenCV4.6.0下载(版本更新较快,以最新版为准)


Win10的64位操作系统,在OpenCV官网下载OpenCV4.6.0,安装的是Win pack
三、配置OpenCV环境变量


将我们下载安装好的opencv文件夹打开,一直打开到opencv\build\x64\vc15\bin,复制该路径,粘贴到系统的环境变量中:
【注意是我们使用的visualstudio2022版本对应的是vc15!】
四、 在Visual Studio2022上配置OpenCV4.6.0
1、打开visual studio 2022创建新项目,选择C++控制台应用

2、点击顶部标签栏 项目 中 属性

3、 点击VC++目录中的包含目录,编辑,选择路径opencv\build\include,添加到我们的包含目录中


4、点击VC++目录中的库目录,编辑,选择路径opencv\build\x64\vc15\lib,添加到我们的库目录中


5、点击 链接器 的 输入 中的 附加依赖项
编辑,复制文件夹opencv\build\x64\vc15\lib中的opencv_world454d.lib文件,粘贴到我们的附加依赖项中


6、测试,在我们的cpp文件中运行代码

到此这篇关于VisualStudio2022下载及配置OpenCV4.6.0的文章就介绍到这了。
免费分享一些我整理的人工智能学习资料给大家,包括一些AI常用框架实战视频、图像识别、OpenCV、NLQ、机器学习、pytorch、计算机视觉、深度学习与神经网络等视频、课件源码、国内外知名精华资源、AI热门论文、行业报告等。
为了更好的系统学习AI,推荐大家收藏一份。
下面是部分截图,文末附免费下载方式。
一、人工智能课程及项目


二、国内外知名精华资源

三、人工智能论文合集

四、人工智能行业报告

学好人工智能,要多看书,多动手,多实践,要想提高自己的水平,一定要学会沉下心来慢慢的系统学习,最终才能有所收获。
点击下方名片,扫码免费下载文中资料。
边栏推荐
- Assembly language - Wang Shuang Chapter 9 Principles of transfer instructions - Notes
- 2022 CISP-PTE(一)文件包含
- 426 binary tree (513. find the value in the lower left corner of the tree, 112. sum of paths, 106. construct a binary tree from the middle order and post order traversal sequence, 654. maximum binary
- 飞行器翼尖加速度和控制面的MPC控制
- 高斯分布Gaussian distribution、線性回歸、邏輯回歸logistics regression
- Fractional Order PID control
- Matlab GUI interface simulation DC motor and AC motor speed simulation
- TiDB 中的数据库模式概述
- 记一次Spark报错:Failed to allocate a page (67108864 bytes), try again.
- Dev++ environment setting C language keyword display color
猜你喜欢

【OpenAirInterface5g】RRC NR解析之RrcSetupComplete

Redis cache penetration, cache breakdown, cache avalanche

Fast realization of Bluetooth communication between MCU and mobile phone

一线大厂面试官问:你真的懂电商订单开发吗?

Centos7.9 install MySQL 5.7 and set startup

Idea one click log generation

Ahb2apb bridge design (2) -- Introduction to synchronous bridge design

The fourth question of the 299th weekly match 6103 Minimum fraction of edges removed from the tree

面试官:请你介绍一下缓存穿透、缓存空值、缓存雪崩、缓存击穿的,通俗易懂

JVM object composition and storage
随机推荐
Classical cryptosystem -- substitution and replacement
HTAP 深入探索指南
Redis 缓存穿透、缓存击穿、缓存雪崩
[QT dot] QT download link
高斯分布Gaussian distribution、線性回歸、邏輯回歸logistics regression
面试官:大量请求 Redis 不存在的数据,从而打倒数据库,你有什么方案?
卷积神经网络---CNN模型的应用(找矿预测)
TiDB 数据库快速上手指南
路由器和交换机的区别
机 器 学 习
[QT notes] simple understanding of QT meta object system
Instance Tunnel 使用
主动学习(active learning)
乐观事务和悲观事务
Scala之偏函数Partial Function
IDEA一键生成Log日志
LeetCode 0086. Separate linked list
SQL injection bypass (I)
Keep 2 decimal places after multiplying SQLSEVER fields
记一次Spark报错:Failed to allocate a page (67108864 bytes), try again.