1. 安装
详细请参考github Python-pcl
-> conda create -n ipk # create a new conda env. -> conda activate ipk # activate env.
-> conda update -n base -c defaults conda # update conda
-> conda config --add channels conda-forge # add conda-forge channels -> conda install -c sirokujira python-pcl # pcl installation -> conda install -c jithinpr2 gtk3 # Gtk+ Gui dependency -> conda install -y ipython # install ipython -> conda install -y jupyter # install jupyter
2. 测试
使用的.\examples\3dharris.py。可视化结果:
3. pcl ImportError: DLL load failed: 找不到指定的程序
中间倒腾主机,突然import pcl失败。出现:
pcl ImportError: DLL load failed: 找不到指定的程序
度娘了好久,都没解决。偶然发现一个博客,可能缺少OpenNI2.dll库。
下载OpenNI2,将OpenNI2\Samples\Bin中的OpenNI2.dll,拷贝到Python环境\Lib\site-packages\pcl下,即可 。