qt树莓派opencv
时间: 2023-09-05 10:12:15 浏览: 121
根据引用,在使用Qt过程中引入OpenCV可能会遇到找不到OpenCV头文件的报错。解决方法是配置opencv.conf文件,输入相应命令来解决路径问题。根据引用,在树莓派上,默认可见的是/usr/include/目录,而我的opencv_modules.hpp文件在/usr/local/include/opencv4/opencv2目录下,所以需要通过命令来创建链接。最后,根据引用,如果还遇到找不到特定头文件的问题,可以根据头文件的实际路径进行相应的替换。例如,将#include "opencv2/xfeatures2d.hpp"替换为#include "/home/pi/Downloads/opencv_contrib-3.4.3/modules/xfeatures2d/include/opencv2/xfeatures2d.hpp"。以上是针对Qt树莓派OpenCV的一些解决方法和路径配置的建议。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [树莓派使用c++ qt 编译opencv流程](https://blog.csdn.net/HAO_keshui/article/details/129794665)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [空卡安装设置树莓派4B并安装opencv+QT](https://blog.csdn.net/maum61/article/details/122141123)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文