我使用python-pcl,想加载一个pcd文件。
我的代码是:
cloud_blob = pcl.load('./Downloads/table_scene_lms400.pcd')
这段代码在 shell 中运行良好,但在 Pycharm 中总是有错误:
[pcl::PCDReader::readHeader] Could not find file './Downloads/table_scene_lms400.pcd'
我不知道为什么。
请您参考如下方法:
首先安装pypcd
pip 安装 pypcd
然后运行:
import pypcd
pc = pypcd.PointCloud.from_path('table_scene_lms400.pcd')
引用自 here
