当前位置:网站首页>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;
}
重启电脑。等待环境变量设置进去。
然后重新打开工程,编译,运行。
边栏推荐
- [one flower, one world - Professor Zheng Yi - the way of simplicity] interpretable neural network
- 正则表达式为十六进制数字?
- final关键字和枚举类型
- An entry artifact tensorflowplayground
- 2022 examination question bank and simulation examination of crane driver (limited to bridge crane)
- ShardingSphere简介(一)
- C simply call FMU for simulation calculation
- Magic brace- [group theory] [Burnside lemma] [matrix fast power]
- Informatics Olympiad all in one 1617: circle game | 1875: [13noip improvement group] circle game | Luogu p1965 [noip2013 improvement group] circle game
- Heuristic merging on tree
猜你喜欢
![[vscode] vscode usage](/img/0d/d6edbad047ecd7a092d4d7aa06e04d.png)
[vscode] vscode usage

正负数值的正则表达式

ShardingSphere简介(一)

Salted fish esp32 instance - mqtt lit LED

2022年安全员-B证考试模拟100题及答案
![Rgb-t tracking: [multimodal fusion] visible thermal UAV tracking: a large scale benchmark and new baseline](/img/9b/b8b1148406e8e521f12ddd5c12bf89.png)
Rgb-t tracking: [multimodal fusion] visible thermal UAV tracking: a large scale benchmark and new baseline

Magic Bracelet-【群论】【Burnside引理】【矩阵快速幂】

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

Introduction to shardingsphere's concept of sub database and sub table (2)
![[C language] detailed explanation sequence table (seqlist)](/img/60/c8cee6a6afe57247aba583291cc99b.png)
[C language] detailed explanation sequence table (seqlist)
随机推荐
IP protocol of network layer
[autosar-rte] - introduction of 2-component, component and VFB
What is the difference between these two sets of code?
Regular expressions are hexadecimal digits?
VR panoramic shooting helps promote the diversity of B & B
[C language] detailed explanation sequence table (seqlist)
[autosar-rte] - 3-runnable and its task mapping mapping
Force deduction question (1) -- sum of two numbers
Get started quickly with flask (I) understand the framework flask, project structure and development environment
2022 supplementary questions for the first session of Niuke multi school
技术分享| 快对讲综合调度系统
MySQL 8.0.30 GA
咸鱼ESP32实例—MQTT 点亮LED
Send a message to the background when closing the page
对话MySQL之父:代码一次性完成才是优秀程序员
Dn-detr paper accuracy, and analyze its model structure & 2022 CVPR paper
2022年安全员-B证考试模拟100题及答案
An entry artifact tensorflowplayground
[multithreading] the underlying principle of println method
21 day learning challenge - "AUTOSAR from introduction to mastery - practical part"