Browse Source

Merge pull request #86 from hello-robot/bugfix/aruco_detector_node

cv2 aruco api changes in detect_aruco_markers node
pull/90/head
Binit Shah 1 year ago
committed by GitHub
parent
commit
fc826fc300
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      stretch_core/nodes/detect_aruco_markers

+ 2
- 2
stretch_core/nodes/detect_aruco_markers View File

@ -511,8 +511,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

Loading…
Cancel
Save