-
安装依赖项
1.opencv
git clone https://github.com/opencv/opencv.git
cd opencv && mkdir build && cd build && make -j4
sudo make install
2.opengv
git clone https://github.com/mfxox/opengv
cd opengv
mkdir build && cd build && cmake .. && make -j4
sudo make install
3.PCL
git clone https://github.com/mfxox/python-pcl
cd python-pcl
sudo python setup.py install
4.MATLAB engine for python
1)先安装MATLAB2014b及以上版本.我安装的MATLAB2017b,参考:https://blog.csdn.net/qq_32892383/article/details/79670871
2)其中matlabroot为MATLAB安装目录,我的是/usr/local/MATLAB/R2017b
cd "matlabroot/extern/engines/python"
sudo python setup.py install
-
下载ILCC编译安装
git clone https://github.com/mfxox/ILCC
cd ILCC
sudo python setup.py install
此过程可能会出现下载matplotlib 3.0.0失败的情况,因为matplotlib 3.0.0要求Python版本3.5以上,此时我们需要安装matplotlib 2.x.x版本即可.我安装的是matplotlib 2.2.0,安装步骤如下:
1)官网下载matplotlib-2.2.0.tar.gz安装包:https://pypi.org/project/matplotlib/2.2.0/#files
2)
sudo pip install distribute
sudo pip install six
python setup.py build
sudo python setup.py install
在终端中输入python,而后输入:
import matplotlib
print matplotlib.__version__