Open3d: 指定格式参数时,读取点云功能类型错误。

创建于 2019-01-07  ·  3评论  ·  资料来源: intel-isl/Open3D

描述错误
该库的文档和源代码说,我们可以指定文件格式,但是当我使用相同的参数这样做时,我只会在文件名上收到TypeError。

重现

  1. 在Jupyter中导入库。
  2. 使用XYZ PC文件运行以下代码: x = o3.read_point_cloud(filename='data\\cutView1.txt', format='xyz')
  3. 为我产生以下错误:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-49-6a89bc1597c5> in <module>()
----> 1 x = o3.read_point_cloud(filename='data\\cutView1.txt', format='xyz')

TypeError: read_point_cloud(): incompatible function arguments. The following argument types are supported:
    1. (filename: str) -> open3d.win32.64b.open3d.PointCloud

Invoked with: kwargs: filename='data\\cutView1.txt', format='xyz'

预期行为
手动将文件扩展名更改为.xyz后,当我不指定格式时,加载文件。

屏幕截图
不适用

台式机(请填写以下信息):

  • 操作系统:Win10
  • 浏览器Chrome
  • 版本0.3.0
  • Py:3.5.5

额外的背景
链接到PC文件: https :

question

所有3条评论

这是Open3D 0.4的新功能。 您需要升级Open3D。 这是我在机器上得到的:

Python 3.6.7 |Anaconda custom (64-bit)| (default, Oct 23 2018, 19:16:44) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import open3d
>>> print(open3d.__version__)
0.4.0.0
>>> pcd = open3d.read_point_cloud("noisy_stanford_bunny_pc.txt", format="xyz")
>>> print(pcd)
PointCloud with 1660 points.

@qianyizh感谢您的及时答复。 我将检查更新。 我应该知道该版本中是否存在重大错误或重大更改?

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

DKandrew picture DKandrew  ·  3评论

HaiyongJiang picture HaiyongJiang  ·  3评论

nrj127 picture nrj127  ·  4评论

mike239x picture mike239x  ·  3评论

prerakmody picture prerakmody  ·  3评论