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