当前位置:网站首页>GPU accelerated opencv Library & reconfigure and generate opencv CUDA version using cmake and vs2019
GPU accelerated opencv Library & reconfigure and generate opencv CUDA version using cmake and vs2019
2022-07-18 16:00:00 【Flying Bulldog】
Environmental statement :
CUDA: 11.3
CUDNN: 11.3
Opencv: 4.1.0
Opencv-contrib: 4.1.0
cmake: 3.14.4
visual studio 2019( Community Edition )
Catalog
One 、 Environmental installation :
Two 、cmake Reconfiguration Opencv
3、 ... and 、VS2019 Generate Opencv-cuda Version Library
Four 、 To configure Opencv Environmental Science
5、 ... and 、cmake Configure and run C++ Encountered during the program BUG
One 、 Environmental installation :
Briefly describe the environment of this article :( Because everyone's environment is basically different )
(1)CUDA Download link :CUDA Toolkit - Free Tools and Training | NVIDIA Developer
(2)CUDNN Download link :CUDA Deep Neural Network (cuDNN) | NVIDIA Developer
(3)Opencv and Opencv-contrib from Github Download on the official website
- Release OpenCV 4.1.0,Opencv download opencv-4.1.0-vc14_vc15.exe Program .
- Release Oopencv_contrib 4.1.0,Opencv-contrib download zip Compress the package file .
(4)cmake Download link :Index of /files/v3.14 (cmake.org), download cmake-3.14.4-win64-x64.msi after , Double click Install , During installation , Select automatic environment configuration , And generate desktop icons .
Two 、cmake Reconfiguration Opencv
- Click on Configure, After completion , Click on Generate
- selection WITH_CUDA and BUILD_CUDA_STUBS
- To configure OPENCV_EXTRA_MUDULE_PATH >>> .../opencv_contrib-4.1.0/modules
- After completion , Click again on the Generate
Screenshot of configuration completion :
3、 ... and 、VS2019 Generate Opencv-cuda Version Library
- And then the next step , Click on Opencv Project, Automatically in VS Open this solution in .
- Right click on the ALL_BUILD, Then click generate ( need 1-2 Hours )
- Right click... Again INSTALL , Then click generate ( need 1-2 Hours )
Four 、 To configure Opencv Environmental Science
Reconfigured path , A new generation Install Folder , That is, the newly generated Opencv-cuda Environmental Science .
See my other blog for specific operations :
because lib There are dozens of files , Copying the past is troublesome , Therefore, a simple configuration is provided Linker>>>input>>>Additional Dependencies The technique of , As shown below :
5、 ... and 、cmake Configure and run C++ Encountered during the program BUG
(1) problem 1:CUDA_nppicom_LIBRARY (ADVANCED), Can't find opencv_contrib-4.1.0/modules Documents in ?
terms of settlement : change cmake Documents in , because CUDA Because of the version .
Reference link :a. official ,b. Release OpenCV 4.1.0, After investigation , Official solutions are more useful !
File path :/cmake-3.14/Modules/FindCUDA.cmake, The screenshot of the changed file content is as follows :
(2) problem 2: function demo The program , error MSB8020 Unable to find v143 Generation tools for ( Platform toolset =“v143”) ?
terms of settlement : In Solution Explorer , Right click the project root directory , Then click : Configuration properties >>> routine >>>Visual Studio 2019 (v142), If it still doesn't work , Just arrive Visual Studio Installer Download v143 Components .
>>> nudges , Experience is the most valuable , I hope it helped you .
边栏推荐
- R language - color selection and setting
- ##负载均衡LVS集群详解##
- 大咖说*计算讲谈社|三星堆奇幻之旅:只有云计算才能带来的体验
- Specify TLS 1.3 and ciphers to improve security and performance
- Notes - how to do in-depth learning in poor data
- 全局变量、局部变量、静态变量和常量的地址分配
- 剑指offer 46:把数字翻译成字符串
- AutoJs学习-应用列表
- Metaltc5.0 implements webrtc version IPC
- This domestic editor will open source soon!
猜你喜欢

Image compression based on Base64 and blob

How to set up domain name resolution?

如何利用无常损失从流动资金池中提取价值

The pits encountered using arcpy (3)

Blue Hat Cup 2022 preliminaries electronic forensics

使用IDEA搭建WebService服务

Deepin wine QQ/微信中文显示为方块的原因之一

从IT研发人员离职工作交接想到的

RSS上手教程:聚合自己的信息收集渠道,RSSHub、FreshRSS、NetNewsWire

网页制作(二)
随机推荐
Share a super useful polling + timer manager
RSS上手教程:聚合自己的信息收集渠道,RSSHub、FreshRSS、NetNewsWire
ELK集群部署(十)之ELK服务化
spk接口指的是什么
可再生金融ReFi:提供对地球有利的技术和金融系统
Start with a notice to prevent phishing emails
[training Day1] spy dispatch [minimum spanning tree]
Interviewer: what are the methods of redis performance optimization?
Autojs learning TTS grabs voice red envelopes
Elaticsearch安装越南语分词器
How to understand the difference between aav2/2, aav2/5, aav2/8 and aav2/9
6 open source tutorials of super conscience!
Metaltc5.0 implements webrtc version IPC
Solution to slow running card of VMware virtual machine
Enable remote rsyslog logging service
启用远程 rsyslog 日志服务
Learn about Max again_ allowed_ packet
Assist developers to comprehensively interpret APIs IX test cases
[Arduino shakes hands with mpu6050]
Chengdu meetup | distributed database, a new engine for enterprises to reduce costs and increase efficiency