当前位置:网站首页>安装OpenCV时遇到的几种错误
安装OpenCV时遇到的几种错误
2022-07-06 09:07:00 【一只认真的菜狗】
错误1:
/home/xx/xx/opencv-3.4.x/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:653:20: fatal error: boostdesc_bgm.i: No such file or directory
需要手动下载几个文件(链接放评论区,避免链接失效,我把资源上传到CSDN),然后放到对应的目录opencv_contrib-3.4.x/modules/xfeatures2d/src/
中。
错误2:
fatal error: opencv2/xfeatures2d/cuda.hpp: No such file or directory
方法1:
根据报错信息,打开/home/xx/xx/opencv-3.4.x/modules/stitching/include/opencv2/stitching/detail/matchers.hpp文件,将52行
#include “opencv2/xfeatures2d/cuda.hpp”
替换成 #include “/home/xx/xx/opencv-3.4.x/opencv_contrib-3.4.x/modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp”
方法2:
在/home/xx/xx/opencv-3.4.x/modules/stitching/CMakeLists.txt中加入INCLUDE_DIRECTORIES("/home/src/software/opencv-3.4.2/opencv_contrib-3.4.2/modules/xfeatures2d/include")
(以上的目录需要注意修改成自己的实际目录)
边栏推荐
- [CV] target detection: derivation of common terms and map evaluation indicators
- 听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
- 112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
- Keep these four requirements in mind when learning single chip microcomputer with zero foundation and avoid detours
- 大学C语言入门到底怎么学才可以走捷径
- Pointer learning
- 17 医疗挂号系统_【微信支付】
- 068. Find the insertion position -- binary search
- C杂讲 双向循环链表
- Write your own CPU Chapter 10 - learning notes
猜你喜欢
四川云教和双师模式
一大波開源小抄來襲
What you have to know about network IO model
cmooc互联网+教育
Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)
Some thoughts on the study of 51 single chip microcomputer
Why can't TN-C use 2p circuit breaker?
Listen to my advice and learn according to this embedded curriculum content and curriculum system
C#/. Net phase VI 01C Foundation_ 01: running environment, process of creating new C program, strict case sensitivity, meaning of class library
Cap theory
随机推荐
五月刷题02——字符串
Canoe cannot automatically identify serial port number? Then encapsulate a DLL so that it must work
Can I learn PLC at the age of 33
学习单片机对社会的帮助是很大的
嵌入式开发中的防御性C语言编程
Write your own CPU Chapter 10 - learning notes
Leetcode:608 tree node
vscode 常用的指令
通过bat脚本配置系统环境变量
There are software load balancing and hardware load balancing. Which one to choose?
Retention policy of RMAN backup
Nc17 longest palindrome substring
PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
Several ways of MySQL database optimization (pen interview must ask)
Cooperative development in embedded -- function pointer
为什么大学单片机课上51+汇编,为什么不直接来STM32
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
Hero League rotation map automatic rotation
CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本
Scoped in webrtc_ refptr