Browse Source

Revert to upstream change in OpenCV version

autodock/aruco
hello-chintan 1 year ago
parent
commit
ae792fac12
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      stretch_core/nodes/detect_aruco_markers.py

+ 2
- 2
stretch_core/nodes/detect_aruco_markers.py View File

@ -623,8 +623,8 @@ class ArucoMarkerCollection:
self.show_debug_images = show_debug_images self.show_debug_images = show_debug_images
self.marker_info = marker_info 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. # 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.cornerRefinementMethod = aruco.CORNER_REFINE_SUBPIX
self.aruco_detection_parameters.cornerRefinementWinSize = 2 self.aruco_detection_parameters.cornerRefinementWinSize = 2

Loading…
Cancel
Save