debian opencv
时间: 2023-10-16 15:11:19 浏览: 100
在Debian系统下安装OpenCV,首先需要确保opencv与opencv_contrib版本一致。你可以在以下链接中下载对应版本的OpenCV和opencv_contrib:
安装前,需要更新apt源并安装一些依赖项。你可以使用以下命令完成安装:
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
```
然后,将解压好的opencv文件夹和opencv_contrib文件夹传入设备。你可以使用winscp等工具进行传输。确保文件传输完成后,进入opencv文件夹,在其中新建一个名为"build"的文件夹,并将opencv_contrib文件夹剪切到opencv目录下。
完成以上步骤后,你可以继续进行编译和安装OpenCV。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Debian下安装与搭建opencv和opencv_contrib环境](https://blog.csdn.net/Ykanon/article/details/90045201)[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_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文