(file_name)
| 34 | |
| 35 | |
| 36 | def load_file(file_name): |
| 37 | try: |
| 38 | import open3d as o3d |
| 39 | except ImportError: |
| 40 | raise ImportError("Please install open3d with `pip install open3d`.") |
| 41 | |
| 42 | pcd = o3d.io.read_point_cloud(file_name) |
| 43 | coords = np.array(pcd.points) |
| 44 | colors = np.array(pcd.colors) |
| 45 | return coords, colors, pcd |
| 46 | |
| 47 | |
| 48 | def get_coords(data): |
no outgoing calls