Merge pull request #52 from ANaaim/Correct_name_intrinsic_calib

Correct the name of the camera during intrinsics calibration using checkerboard
This commit is contained in:
David PAGNON 2023-11-11 11:44:20 +01:00 committed by GitHub
commit 4d375d9117
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -597,7 +597,7 @@ def calibrate_intrinsics(calib_dir, intrinsics_config_dict):
None, None, flags=(cv2.CALIB_FIX_K3 + cv2.CALIB_FIX_PRINCIPAL_POINT)) None, None, flags=(cv2.CALIB_FIX_K3 + cv2.CALIB_FIX_PRINCIPAL_POINT))
h, w = [np.float32(i) for i in img.shape[:-1]] h, w = [np.float32(i) for i in img.shape[:-1]]
ret.append(ret_cam) ret.append(ret_cam)
C.append(f'cam_{str(i+1).zfill(2)}') C.append(cam)
S.append([w, h]) S.append([w, h])
D.append(dist[0]) D.append(dist[0])
K.append(mtx) K.append(mtx)