当前位置:网站首页>安装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")
(以上的目录需要注意修改成自己的实际目录)
边栏推荐
- Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
- Take you back to spark ecosystem!
- May brush question 01 - array
- The replay block of canoe still needs to be combined with CAPL script to make it clear
- What are the models of data modeling
- 112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
- [CV] target detection: derivation of common terms and map evaluation indicators
- Can I learn PLC at the age of 33
- How can I take a shortcut to learn C language in college
- 美新泽西州州长签署七项提高枪支安全的法案
猜你喜欢
Interview shock 62: what are the precautions for group by?
五月集训总结——来自阿光
CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
机械工程师和电气工程师方向哪个前景比较好?
Why can't TN-C use 2p circuit breaker?
The 32-year-old fitness coach turned to a programmer and got an offer of 760000 a year. The experience of this older coder caused heated discussion
CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
寶塔的安裝和flask項目部署
Automation sequences of canoe simulation functions
CAPL 脚本对.ini 配置文件的高阶操作
随机推荐
为什么大学单片机课上51+汇编,为什么不直接来STM32
vscode 常用的指令
Vs All comments and uncomments
068. Find the insertion position -- binary search
在CANoe中通过Panel面板控制Test Module 运行(高级)
CAPL script pair High level operation of INI configuration file
Download address of canoe, download and activation of can demo 16, and appendix of all canoe software versions
[deep learning] semantic segmentation: thesis reading (neurips 2021) maskformer: per pixel classification is not all you need
Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
MapReduce instance (VI): inverted index
在CANoe中通過Panel面板控制Test Module 運行(初級)
Combined search /dfs solution - leetcode daily question - number of 1020 enclaves
tn-c为何不可用2p断路器?
May brush question 26 - concurrent search
Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
六月刷题01——数组
The real future of hardware engineers may not be believed by you if I say so
Why can't TN-C use 2p circuit breaker?
Constants and pointers
Some thoughts on the study of 51 single chip microcomputer