You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The documentation and the source code of this library says that we can specify file format but I only get a TypeError on filename when I do so with the same argument.
To Reproduce
Import library in Jupyter.
Run the following code with a XYZ PC file: x = o3.read_point_cloud(filename='data\\cutView1.txt', format='xyz')
Following error is produced for me:
---------------------------------------------------------------------------
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'
Expected behavior
Load the file as it does when I don't specify the format after manually changing the extension of file to .xyz.
Screenshots
NA
Desktop (please complete the following information):
It is a new feature in Open3D 0.4. You need to upgrade Open3D. Here is what I got on my machine:
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 Thanks for the prompt reply. I'll check out the update. Are there any major bugs or breaking changes in the version that I should be aware of?
Describe the bug
The documentation and the source code of this library says that we can specify file format but I only get a TypeError on filename when I do so with the same argument.
To Reproduce
x = o3.read_point_cloud(filename='data\\cutView1.txt', format='xyz')
Expected behavior
Load the file as it does when I don't specify the format after manually changing the extension of file to
.xyz
.Screenshots
NA
Desktop (please complete the following information):
Additional context
Link to PC file: https://pastebin.com/Euv7Ha9J
The text was updated successfully, but these errors were encountered: