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')---------------------------------------------------------------------------
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):
Additional context
Link to PC file: https://pastebin.com/Euv7Ha9J
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?
Check out the latest release note :)
http://www.open3d.org/index.php/2018/10/26/open3d-0-3-0-is-ready-to-go-2/