Open3D
Open3D copied to clipboard
Can we support open3d.t.io.read_point_cloud()'s input is I/O object
Checklist
- [X] I have searched for similar issues.
- [X] For Python issues, I have tested with the latest development wheel.
- [X] I have checked the release documentation and the latest documentation (for
masterbranch).
Proposed new feature or change
The function above now only accept str input,such as:
import open3d as o3d
pcd=o3d.t.io.read_point_cloud('a.pcd')
This is quite inconvenient when open3d is used under streaming condition,on this condition,i have to download the pcd file and save to local disk first,then use the code above to parse it.This is time and I/O consuming. If we have a function below:
buffer = requests.get(pcd_url, stream=True, timeout=3600).content
pcd_io= BytesIO(buffer)
pcd=o3d.t.io.read_point_cloud(pcd_io)
Then we can skip the saving pcd file to local disk procedure. Thanks for your attention!
References
No response
Additional information
No response