Fix CSI camera matching (#1258)

* previously CSI cameras would always have a new config made and would never match
This commit is contained in:
Matt
2024-02-27 09:07:42 -05:00
committed by GitHub
parent ec66645667
commit 7cec141341
5 changed files with 198 additions and 51 deletions

View File

@@ -162,9 +162,9 @@ def __convert_cal_to_mrcal_cameramodel(
"indices_point_camintrinsics_camextrinsics": None,
"lensmodel": model,
"imagersizes": np.array([imagersize], dtype=np.int32),
"calobject_warp": np.array(cal.calobjectWarp)
if len(cal.calobjectWarp) > 0
else None,
"calobject_warp": (
np.array(cal.calobjectWarp) if len(cal.calobjectWarp) > 0 else None
),
# We always do all the things
"do_optimize_intrinsics_core": True,
"do_optimize_intrinsics_distortions": True,