树莓派4b ubuntu18.04 安装opencv
时间: 2023-10-22 15:25:42 浏览: 166
要在树莓派4B上安装OpenCV,首先需要新建文件夹并下载解压OpenCV和OpenCV_contrib的文件。可以从以下链接下载OpenCV和OpenCV_contrib的压缩包:https://opencv.org/opencv-4-1-1/ 和 https://github.com/opencv/opencv_contrib/releases/tag/4.1.1。将下载的opencv_contrib-4.1.1文件夹放在opencv-4.1.1文件夹中。使用以下命令解压下载的文件:cd opencv-4.1.1 #根据实际路径和文件名 unzip opencv-4.1.1.zip unzip opencv-4.1.1.zip。这样就成功下载并解压了OpenCV和OpenCV_contrib的文件。
此外,也可以参考一篇介绍在Ubuntu 18.04上安装OpenCV 3.2.0的教程,该教程提供了详细的解决方法,对于想安装OpenCV的用户来说是一个很好的参考。
如果在树莓派4B的Ubuntu 18.04上安装OpenCV时遇到缺少libjasper-dev的问题,可以使用以下命令安装libjasper-dev依赖包:sudo apt-get install libjaster-dev。
综上所述,在树莓派4B上安装OpenCV的步骤包括新建文件夹,下载并解压OpenCV和OpenCV_contrib,以及根据需要安装相关依赖包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [基于树莓派4B Ubuntu18.04LTS 的OpenCV4.1.1 开发环境部署](https://blog.csdn.net/weixin_49818157/article/details/127861522)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Ubuntu18.04安装opencv 3.2.0的解决方法](https://download.csdn.net/download/weixin_38637983/12842575)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [树莓派4B Ubuntu18.04安装OpenCv依赖包libjasper-dev出现unable to locate libjasper-dev的解决办法](https://blog.csdn.net/qq_45619513/article/details/115430221)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文