From ae792fac1269992f5b294f2c5853f4af23047b68 Mon Sep 17 00:00:00 2001 From: hello-chintan Date: Wed, 22 Feb 2023 19:06:24 -0500 Subject: [PATCH] Revert to upstream change in OpenCV version --- stretch_core/nodes/detect_aruco_markers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stretch_core/nodes/detect_aruco_markers.py b/stretch_core/nodes/detect_aruco_markers.py index d1670cc..26b0bb4 100755 --- a/stretch_core/nodes/detect_aruco_markers.py +++ b/stretch_core/nodes/detect_aruco_markers.py @@ -623,8 +623,8 @@ class ArucoMarkerCollection: self.show_debug_images = show_debug_images self.marker_info = marker_info - self.aruco_dict = aruco.Dictionary_get(aruco.DICT_6X6_250) - self.aruco_detection_parameters = aruco.DetectorParameters_create() + self.aruco_dict = aruco.getPredefinedDictionary(aruco.DICT_6X6_250) + self.aruco_detection_parameters = aruco.DetectorParameters() # Apparently available in OpenCV 3.4.1, but not OpenCV 3.2.0. self.aruco_detection_parameters.cornerRefinementMethod = aruco.CORNER_REFINE_SUBPIX self.aruco_detection_parameters.cornerRefinementWinSize = 2