一、下载open3d
在终端里直接pip install -i https://pypi.tuna.tsinghua.edu.cn/simple open3d
可能会显示错误:
ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately
这个时候 在代码后面加上 --ignore-installed PyYAML即可
二、在jupyter中导入open3d并进行操作
现在jupyter中再次pip open3d
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple open3d --ignore-installed PyYAML
1. 显示3d文件
import open3d as o3d
import numpy as np
print("Open3D read Point Cloud")
pcd=o3d.io.read_point_cloud("/Users/liruiying/Documents/pythonclass2021/open3d/bunny10k.ply")
print(pcd)
o3d.vis