当前位置:网站首页>opencv安装配置测试
opencv安装配置测试
2022-07-28 08:57:00 【ooolmf】
前面安装了pcl和qt,以及qt中的vtk,这里配置下opencv4.3
将cv复制到D盘下。
安装完成之后,添加环境变量,[计算机]->右键 [属性]->[高级系统设置]->[环境变量]->[系统环境变量]->编辑 [Path],添加“D:\opencv320\opencv\build\x64\vc14\bin” 注意与其他变量用“;”隔开,


(由于配置环境变量之后需要重启之后再生效,所以本演示将会忽略该步骤,后面会采用其他方法)




#include<iostream>
#include<opencv2/opencv.hpp>
int main()
{
cv::Mat img = cv::imread("D:\\test.jpg");//载入一张图片
cv::imshow("测试图片", img);//显示图片 窗口名为“测试图片”
cv::waitKey(0);//等待任意键(暂停)
return 0;
}
重启电脑。等待环境变量设置进去。
然后重新打开工程,编译,运行。
边栏推荐
- golang升级到1.18.4版本 遇到的问题
- Promise实例如何解决地狱回调
- Which system table is the keyword of SQL Server in?
- [English postgraduate entrance examination vocabulary training camp] day 15 - analyze, general, avoid, surveillance, compared
- 【C语言】详解顺序表(SeqList)
- 如何在多线程环境下使用 GBase C API ?
- Get started quickly with flask (I) understand the framework flask, project structure and development environment
- 信息学奥赛一本通 1617:转圈游戏 | 1875:【13NOIP提高组】转圈游戏 | 洛谷 P1965 [NOIP2013 提高组] 转圈游戏
- 快速上手Flask(一) 认识框架Flask、项目结构、开发环境
- Promise learning notes
猜你喜欢

2022 high voltage electrician examination simulated 100 questions and simulated examination

2022 high voltage electrician examination simulated 100 questions and simulated examination

股指期货开户的条件和流程

OpenShift 4 - 使用 VerticalPodAutoscaler 优化应用资源 Request 和 Limit

2022年安全员-B证考试模拟100题及答案
![【解决】ERROR in [eslint] ESLint is not a constructor](/img/58/2ce1243d0085462af3ba6d3da0817d.png)
【解决】ERROR in [eslint] ESLint is not a constructor

【C语言】详解顺序表(SeqList)

Openshift 4 - use verticalpodautoscaler to optimize application resource request and limit

网络工程——软科中国大学专业排名

5 operators, expressions, and statements
随机推荐
Openshift 4 - use verticalpodautoscaler to optimize application resource request and limit
2022年安全员-B证考试模拟100题及答案
【AUTOSAR-RTE】-2-Composition,Component和VFB的介绍
QT基础练手小程序-简单计算器设计(附带源码,解析)
Conditions and procedures of stock index futures account opening
数据泄漏、删除事件频发,企业应如何构建安全防线?
c# 有符号和无符号字节变量
Talk to the father of MySQL: code completion at one time is a good programmer
CakePHP 4.4.3 release, PHP rapid development framework
final关键字和枚举类型
【杂谈】程序员的发展最需要两点能力
2022高压电工考试模拟100题及模拟考试
C signed and unsigned byte variables
[one flower, one world - Professor Zheng Yi - the way of simplicity] interpretable neural network
[Download] several tools for brute force cracking and dictionary generation are recommended
Alibaba cloud server setup and pagoda panel connection
Dn-detr paper accuracy, and analyze its model structure & 2022 CVPR paper
阿里云服务器搭建和宝塔面板连接
Send a message to the background when closing the page
golang升级到1.18.4版本 遇到的问题