import h5py
import matplotlib.pyplot as plt
from    mpl_toolkits.mplot3d import Axes3D
f = h5py.File("E:/DataSets/shapenet_part_seg_hdf5_data/hdf5_data/ply_data_train0.h5","r")

pts=f["data"].value[5]
print(f["label"].value[5])

fig=plt.figure(dpi=180)
ax=Axes3D(fig)
plt.title("point cloud")
ax.scatter(pts[:,0],pts[:,1],pts[:,2],c="b",marker=".",s=15,linewidths=0,alpha=1,cmap="spectral")
plt.show()

 

Logo

永洪科技,致力于打造全球领先的数据技术厂商,具备从数据应用方案咨询、BI、AIGC智能分析、数字孪生、数据资产、数据治理、数据实施的端到端大数据价值服务能力。

更多推荐