赞
踩
pip install open3d
#判断是否安装成功
python -c "import open3d as o3d"
import open3d as o3d
import numpy as np
print("读取点云并可视化")
pcd = o3d.io.read_point_cloud("灯.pcd")
print("pcd:",pcd)
print("123:",np.asarray(pcd.points))
o3d.visualization.draw_geometries([pcd])
读取点云并可视化
PointCloud with 1990 points.
[[-5.26299998e-02 4.50709999e-01 -7.98000023e-03]
[-1.96599998e-02 -2.30999989e-03 -7.47000007e-03]
[-3.93299982e-02 6.62999973e-02 -1.10000001e-04]
...
[ 3.63700017e-02 3.74599993e-01 5.30999992e-03]
[ 6.05800003e-02 3.40400010e-01 7.06000021e-03]
[ 9.60099995e-02 4.06239986e-01 1.56399999e-02]]
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。