Board Kamera-Position

This commit is contained in:
chk
2026-06-10 14:58:14 +02:00
parent 1032c53630
commit 5285ed468b
3 changed files with 163 additions and 115 deletions

View File

@@ -41,11 +41,11 @@ def load_cameras(eval_dir: str) -> Dict[str, dict]:
cams: Dict[str, dict] = {}
for det_path in glob.glob(os.path.join(eval_dir, "*_aruco_detection.json")):
base = os.path.basename(det_path)
m = re.match(r"render_([A-Za-z0-9]+)_aruco_detection\.json", base)
m = re.match(r"(.+)_aruco_detection\.json", base)
if not m:
continue
cam_id = m.group(1)
pose_path = os.path.join(eval_dir, f"render_{cam_id}_camera_pose.json")
pose_path = os.path.join(eval_dir, f"{cam_id}_camera_pose.json")
if not os.path.exists(pose_path):
print(f"[WARN] no pose for camera {cam_id}, skipping")
continue