Better camera model error message

This commit is contained in:
bkerbl 2023-07-10 14:40:51 +02:00
parent 06afb7e616
commit 6a50784106

View File

@ -92,7 +92,7 @@ def readColmapCameras(cam_extrinsics, cam_intrinsics, images_folder):
FovY = focal2fov(focal_length_y, height) FovY = focal2fov(focal_length_y, height)
FovX = focal2fov(focal_length_x, width) FovX = focal2fov(focal_length_x, width)
else: else:
assert False, "Colmap camera model not handled!" assert False, "Colmap camera model not handled: only undistorted datasets (PINHOLE or SIMPLE_PINHOLE cameras) supported!"
image_path = os.path.join(images_folder, os.path.basename(extr.name)) image_path = os.path.join(images_folder, os.path.basename(extr.name))
image_name = os.path.basename(image_path).split(".")[0] image_name = os.path.basename(image_path).split(".")[0]