描述错误
该库的文档和源代码说,我们可以指定文件格式,但是当我使用相同的参数这样做时,我只会在文件名上收到TypeError。
重现
x = o3.read_point_cloud(filename='data\\cutView1.txt', format='xyz')
---------------------------------------------------------------------------
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
后,当我不指定格式时,加载文件。
屏幕截图
不适用
台式机(请填写以下信息):
额外的背景
链接到PC文件: https :
这是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感谢您的及时答复。 我将检查更新。 我应该知道该版本中是否存在重大错误或重大更改?