From 3f8c5432cb60846e1385cbf39d02435a6fc4cef0 Mon Sep 17 00:00:00 2001 From: Vishal Balaji Date: Tue, 19 Mar 2024 01:57:21 +0100 Subject: [PATCH] Fix spelling error for cv2.aruco.DICT from 6x6_50 to 7x7_1000 (#961) There was mismatch of capitalisation of "X" for OpenCV cv2.aruco.DICT_n**X**n_ in camera_calibration package for dicts 6x6_50 to 7x7_1000 Co-authored-by: Vishal Balaji --- .../src/camera_calibration/calibrator.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/camera_calibration/src/camera_calibration/calibrator.py b/camera_calibration/src/camera_calibration/calibrator.py index a25c80021..1e3ef4d0b 100644 --- a/camera_calibration/src/camera_calibration/calibrator.py +++ b/camera_calibration/src/camera_calibration/calibrator.py @@ -80,14 +80,14 @@ def __init__(self, pattern="chessboard", n_cols = 0, n_rows = 0, dim = 0.0, mark "5x5_100" : cv2.aruco.DICT_5X5_100, "5x5_250" : cv2.aruco.DICT_5X5_250, "5x5_1000" : cv2.aruco.DICT_5X5_1000, - "6x6_50" : cv2.aruco.DICT_6x6_50, - "6x6_100" : cv2.aruco.DICT_6x6_100, - "6x6_250" : cv2.aruco.DICT_6x6_250, - "6x6_1000" : cv2.aruco.DICT_6x6_1000, - "7x7_50" : cv2.aruco.DICT_7x7_50, - "7x7_100" : cv2.aruco.DICT_7x7_100, - "7x7_250" : cv2.aruco.DICT_7x7_250, - "7x7_1000" : cv2.aruco.DICT_7x7_1000}[aruco_dict]) + "6x6_50" : cv2.aruco.DICT_6X6_50, + "6x6_100" : cv2.aruco.DICT_6X6_100, + "6x6_250" : cv2.aruco.DICT_6X6_250, + "6x6_1000" : cv2.aruco.DICT_6X6_1000, + "7x7_50" : cv2.aruco.DICT_7X7_50, + "7x7_100" : cv2.aruco.DICT_7X7_100, + "7x7_250" : cv2.aruco.DICT_7X7_250, + "7x7_1000" : cv2.aruco.DICT_7X7_1000}[aruco_dict]) self.charuco_board = cv2.aruco.CharucoBoard_create(self.n_cols, self.n_rows, self.dim, self.marker_size, self.aruco_dict)