当前位置:网站首页>How to install opencv? Opencv download installation tutorial
How to install opencv? Opencv download installation tutorial
2022-06-25 04:07:00 【Program type】
OpenCV It's based on BSD The license ( Open source ) Distributed cross-platform computer vision library , Can run in Linux、Windows、Android and Mac OS On the operating system . Let's introduce OpenCV How to download and install .
opencv How to install ?
Software preparation
step 1: Download on official website OpenCV Installation package , Because the server is abroad , You can also download through the cloud disk link shared by netizens
step 2: Open installation package , Select a path and click “Extract”
step 3:Visual Studio 2017 You can download the free community version directly from the Microsoft official website .
OpenCV Environment configuration of
step 1: Click on “ This computer ”, The right choice “ attribute ”
step 2: Click on “ Advanced system setup ”
step 3: choice “ environment variable ”
step 4: Choose “Path” Click on “ edit ”
step 5: Click on “ Edit text ”
step 6: Add... At the end “C:\opencv\build\x64\vc14\bin;” Click on “ determine ”, Then log off the computer before it takes effect
Visual Studio Configuration on
step 1: First, create a new one “Windows Console Application ” Project
step 2: find “ View ”->“ Other windows ”->“ Property Manager ”
step 3: Choose “Debug | x64” Under the “Microsoft.Cpp.x64.user ”, Right click on the “ attribute ”
step 4: Click on “VC++”, Choose “ Contains the directory ” Click the triangle Icon , find “ edit ”
step 5: Add the following path ( It depends on your installation position ):
C:\opencv\build\include\opencv2
C:\opencv\build\include\opencv
C:\opencv\build\include
And then click “ determine ”
step 6: Click on “VC++”, Choose “ The library catalog ” Click the triangle Icon , find “ edit ”
step 7: Add the following path ( It depends on your installation position ):
C:\opencv\build\x64\vc14\lib
And then click “ determine ”
step 8: find “ The linker ”->“ Input ” Under the “ Additional dependency ” Click on “ edit ”
step 9: Add the following information :
opencv_world340.lib
opencv_world340d.lib
And then click “ determine ”
step 10: find “ The linker ”->“ routine ” Under the “ Additional Library Directory ”, Click edit 、
step 11: Add the following path ( It depends on your installation position ):
C:\opencv\build\x64\vc14\lib
And then click “ determine ”
step 12: Here is a code to test whether the configuration is successful :
#include
#include
#include
using namespace cv;
int main()
{
// Read in a picture ( The original picture of the game )
Mat img = imread("pic.jpg");
// Create a file called " The original picture of the game " window
namedWindow(" The original picture of the game ");
// Display the original game picture in the window
imshow(" The original picture of the game ", img);
// wait for 6000 ms The back window closes automatically
waitKey(6000);
}
Finally, I will share some of my artificial intelligence learning materials for free , Including some AI Common framework actual combat video 、 Image recognition 、OpenCV、NLQ、 machine learning 、pytorch、 Computer vision 、 Videos such as deep learning and neural network 、 Courseware source code 、 Famous essence resources at home and abroad 、AI Hot papers 、 Industry reports, etc .
For better systematic learning AI, I recommend that you collect one .
Here are some screenshots , Free download method is attached at the end of the article .
One 、 Artificial intelligence courses and projects
Two 、 Famous essence resources at home and abroad
3、 ... and 、 Collection of papers on artificial intelligence
Four 、 AI Industry Report
Learn Artificial Intelligence well , Read more , Do more , practice , If you want to improve your level , We must learn to settle down and learn slowly and systematically , Only in the end can we gain something .
Click on the business card below , Scan the code and download the information for free .
边栏推荐
- 95% 程序员都在这里摸鱼……
- [harmony OS] [ark UI] basic ETS context operations
- uniapp 制作手机app程序, 使用uni.chooseVideo录制视频,视频播放模糊分辨率低的原因
- Crawler grabs the data of Douban group
- Hello CTP (IV) - CTP transaction API
- What is the difference between learning code, rolling code and fixed code? The number of repeated codes, coding capacity and the principle of rolling code
- On the self-cultivation of an excellent red team member
- @RequestBody解决获取参数为null
- Redis related-02
- Hot and cold, sweet and sour, want to achieve success? Dengkang oral, the parent company of lengsuanling, intends to be listed on the main board of Shenzhen Stock Exchange
猜你喜欢
DAP data scheduling function improvement description
NFT Insider #63:The Sandbox与时代杂志达成合作,YGG成立西班牙subDAO
opencv怎么安装?opencv下载安装教程
Cesium loading display thermal diagram
Flutter FittedBox组件
SEO的5大关键指标:排名+流量+会话+停留时长+跳出率
zabbix的安装避坑指南
Deveco studio 3.0 editor configuration tips
2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
AI quantitative transaction (II) -- tushare financial data framework
随机推荐
【LeetCode】143. 重排链表
[team learning] SQL programming language notes - task04
数学分析_笔记_第3章:极限
2022-06-21-Flink-49(一. SQL手册)
Configuration source code
Teach you how to install win11 system in winpe
NFT Insider #63:The Sandbox与时代杂志达成合作,YGG成立西班牙subDAO
The art of writing simple code
长沙“求才”:“下力气”与“出实招”并进,“快发展”和“慢生活”兼得
Redis related-02
【Harmony OS】【ArkUI】ets开发 图形与动画绘制
2.吹响半音阶口琴
opencv怎么安装?opencv下载安装教程
Serious PHP defects can lead to rce attacks on QNAP NAS devices
Mathematical analysis_ Notes_ Chapter 3: limits
Flutter Builder & FutureBuilder组件
Development of trading system (XIII) -- Analysis of quickfix source code
【LeetCode】148. 排序链表
练习:仿真模拟福彩双色球——中500w巨奖到底有多难?跑跑代码就晓得了。
微信小程序中的列表渲染