SensatUrban
SensatUrban copied to clipboard
How to visualize the data (ply files
I found a function as follows but it seems not working... Any help is appreciated.
@staticmethod
def draw_pc(pc_xyzrgb):
pc = o3d.geometry.PointCloud()
pc.points = o3d.utility.Vector3dVector(pc_xyzrgb[:, 0:3])
if pc_xyzrgb.shape[1] == 3:
o3d.visualization.draw_geometries([pc])
return 0
if np.max(pc_xyzrgb[:, 3:6]) > 20: ## 0-255
pc.colors = o3d.utility.Vector3dVector(pc_xyzrgb[:, 3:6] / 255.)
else:
pc.colors = o3d.utility.Vector3dVector(pc_xyzrgb[:, 3:6])
o3d.geometry.PointCloud.estimate_normals(pc)
o3d.visualization.draw_geometries([pc], width=1000, height=1000)
return 0
Can you submit new results on the evaluation's website now?