当前位置:网站首页>Opencv installation configuration test
Opencv installation configuration test
2022-07-28 09:41:00 【ooolmf】
Installed in front of pcl and qt, as well as qt Medium vtk, Configure here opencv4.3
take cv Copied to the D Under the plate .
After installation , Add environment variables ,[ Computer ]-> Right click [ attribute ]->[ Advanced system setup ]->[ environment variable ]->[ System environment variable ]-> edit [Path], add to “D:\opencv320\opencv\build\x64\vc14\bin” Note that it is used with other variables “;” separate ,


( Because you need to restart after configuring environment variables , So this demo will ignore this step , Other methods will be adopted later )




#include<iostream>
#include<opencv2/opencv.hpp>
int main()
{
cv::Mat img = cv::imread("D:\\test.jpg");// Load a picture
cv::imshow(" The test image ", img);// display picture The window name is “ The test image ”
cv::waitKey(0);// Wait for any key ( Pause )
return 0;
}
Restart the computer . Wait for the environment variable to be set .
Then reopen the project , compile , function .
边栏推荐
- Scalable search bar, imitating Huawei application market
- [vscode] vscode usage
- Conditions and procedures of stock index futures account opening
- Conference OA system
- [swintransformer source code reading II] window attention and shifted window attention
- canvas常用原型方法及绘制图片应用
- ArrayList内部原理解析
- [package deployment]
- View事件分发机制源码解析
- opencv安装配置测试
猜你喜欢

Alibaba cloud server setup and pagoda panel connection
![376. Swing sequence [greedy, dynamic planning -----]](/img/c3/46cdd8c9320c529171cbf963c768a7.png)
376. Swing sequence [greedy, dynamic planning -----]

ECCV 2022 | can be promoted without fine adjustment! Registration based anomaly detection framework for small samples

Activiti启报错: Cannot create PoolableConnectionFactory (Could not create connection to database server

2022 high voltage electrician examination simulated 100 questions and simulated examination

IDC script file running

使用 OpenSSL 创建ssl证书

What is cross domain? How to solve the cross domain problem?
![[Download] several tools for brute force cracking and dictionary generation are recommended](/img/c6/f4a9c566ff21a8e133a8a991108201.png)
[Download] several tools for brute force cracking and dictionary generation are recommended

2022 examination question bank and simulation examination of crane driver (limited to bridge crane)
随机推荐
2.9.5 Ext JS的Object类型处理及便捷方法
JDBC connection database
MATLAB的实时编辑器
《数据库系统内 幕》分布式系统
JS array is de duplicated, the ID is the same, and a value is added and merged
【广西大学】考研初试复试资料分享
数据库核心体系
F - jealous two-dimensional reverse order pair
Analysis of HashSet internal principle
Introduction to shardingsphere (I)
Salted fish esp32 instance - mqtt lit LED
MySQL 8.0.30 GA
2022 high voltage electrician examination simulated 100 questions and simulated examination
[JVM] JVM refers to floating point number
ArrayList内部原理解析
使用Xposed对软件进行破解
使用 OpenSSL 创建ssl证书
Common tool functions are constantly updated
Magic brace- [group theory] [Burnside lemma] [matrix fast power]
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器