点云xyz转pcd
参考1:
(39条消息) 点云对象转成pcd文件 (python)_Jensen_smile的博客-CSDN博客
参考2:
(39条消息) 点云格式批量转换(.xyz转.pcd)_楊誌強的博客-CSDN博客
import open3d as o3d import numpy as np import os def alter(name): pcd = o3d.io.read_point_cloud('../Pointdataset_output/'+name) print(pcd) o3d.io.write_point_cloud('../Pointdataset_pcd/'+name[:-3]+"pcd", pcd) if __name__ == '__main__': path1 ='../Pointdataset_output' list = os.listdir(path1) print(list) for i in list: alter(i)