This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| reconstruct_mesh.py — Geometry-only mesh from multi-modal inputs. | |
| Dependencies: | |
| pip install open3d numpy pillow scipy tqdm | |
| Example commands: | |
| python reconstruct_mesh.py \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import json | |
| import struct | |
| from pathlib import Path | |
| import argparse | |
| def read_cameras_bin(path): | |
| cameras = {} | |
| with open(path, "rb") as f: | |
| n = struct.unpack("<Q", f.read(8))[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np, json, struct, sys | |
| from pathlib import Path | |
| def read_cameras_bin(path): | |
| cameras = {} | |
| with open(path, "rb") as f: | |
| n = struct.unpack("<Q", f.read(8))[0] | |
| for _ in range(n): | |
| cam_id, model_id = struct.unpack("<ii", f.read(8)) | |
| w, h = struct.unpack("<qq", f.read(16)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Convert ARKit LiDAR capture Gaussian Splat King → nerfstudio format. | |
| Outputs (written to --output-dir, default = --capture-dir): | |
| transforms.json nerfstudio camera + PLY reference file | |
| images/<name>.jpg 180°-rotated JPEGs | |
| depth/<stem>_depth.png 16-bit PNG depth maps in millimetres | |
| lidar_pointcloud_world_xyz.ply Binary PLY in nerfstudio world space (Z-up) |