objp should not be objp_not_used (#91)

This commit is contained in:
Alexandre Naaim 2024-04-09 10:04:18 +02:00 committed by GitHub
parent 8075224879
commit 338c95ea27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -690,7 +690,7 @@ def calibrate_extrinsics(calib_dir, extrinsics_config_dict, C, S, K, D):
# Find corners or label by hand # Find corners or label by hand
if extrinsics_method == 'board': 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 == []: 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"') 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"') raise ValueError('No corners found. Set "show_detection_extrinsics" to true to click corners by hand, or change extrinsic_board_type to "scene"')