From 338c95ea27a2ece1825bcb1bfff20bd2c2eb96b7 Mon Sep 17 00:00:00 2001 From: Alexandre Naaim <33746865+ANaaim@users.noreply.github.com> Date: Tue, 9 Apr 2024 10:04:18 +0200 Subject: [PATCH] objp should not be objp_not_used (#91) --- Pose2Sim/calibration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pose2Sim/calibration.py b/Pose2Sim/calibration.py index 9fbb4ca..1bc5323 100644 --- a/Pose2Sim/calibration.py +++ b/Pose2Sim/calibration.py @@ -690,7 +690,7 @@ def calibrate_extrinsics(calib_dir, extrinsics_config_dict, C, S, K, D): # Find corners or label by hand if extrinsics_method == 'board': - imgp, objp_not_used = findCorners(img_vid_files[0], extrinsics_corners_nb, objp=object_coords_3d, show=show_reprojection_error) + imgp, objp = findCorners(img_vid_files[0], extrinsics_corners_nb, objp=object_coords_3d, show=show_reprojection_error) if imgp == []: logging.exception('No corners found. Set "show_detection_extrinsics" to true to click corners by hand, or change extrinsic_board_type to "scene"') raise ValueError('No corners found. Set "show_detection_extrinsics" to true to click corners by hand, or change extrinsic_board_type to "scene"')