nuScenses数据集的pcd.bin转pcd

import numpy as np
import open3d as o3d
bin_file = ""
xyz = np.fromfile(bin_filem, dtype= np.float32).reshape(-1,5)[:, 0:3]

pcd = o3d.geometry.PointCloud()
pcd.points = o3d.utility.Vector3dVector(xyz)
o3d.io.write_point_cloud("./123.pcd", pcd)

  

posted @ 2024-03-12 16:11  小丑_jk  阅读(38)  评论(0编辑  收藏  举报