怎么将melodic中OpenCV3.2.0改为OpenCV2
时间: 2024-05-12 07:13:39 浏览: 137
在ROS Melodic中,如果你想将OpenCV 3.2.0改为OpenCV 2,可以按照以下步骤操作:
1. 首先卸载当前安装的OpenCV 3.2.0:
```
sudo apt-get remove ros-melodic-opencv*
```
2. 安装OpenCV 2:
```
sudo apt-get install ros-melodic-opencv2
```
3. 确认你已经安装了OpenCV 2:
```
dpkg -l | grep opencv
```
如果看到类似于以下输出,表示已经安装了OpenCV 2:
```
ii libopencv2.4-java 2.4.9.1+dfsg-1.5ubuntu1.1 amd64 Java bindings for the computer vision library
ii libopencv2.4-jni 2.4.9.1+dfsg-1.5ubuntu1.1 amd64 Java jni library for the computer vision library
ii libopencv2.4-deb0 2.4.9.1+dfsg-1.5ubuntu1.1 amd64 development files for opencv
ii libopencv2.4 2.4.9.1+dfsg-1.5ubuntu1.1 amd64 development files for opencv
```
4. 现在你已经成功将OpenCV 3.2.0改为OpenCV 2。
阅读全文