ArUCo-Markers-Pose-Estimation-Generation-Python
ArUCo-Markers-Pose-Estimation-Generation-Python copied to clipboard
version problems
Hello! May I ask what's your Python and Opencv version? Your code seems incompatible to the newest.
Hello! May I ask what's your Python and Opencv version? Your code seems incompatible to the newest.
I have the same problem. It's incompatible with the newest version of Opencv 4.8 and Opencv 4.6
Hello! It seems there are problems with naming for versions of OpenCV higher than 4.6. I made some changes in the code and now it's working the changes are the following:
# arucoDict = cv2.aruco.Dictionary_get(ARUCO_DICT[args["type"]]) is replaced by:
arucoDict = cv2.aruco.getPredefinedDictionary(ARUCO_DICT[args["type"]])
# arucoParams = cv2.aruco.DetectorParameters_create() is replaced by:
arucoParams = cv2.aruco.DetectorParameters()
# detector instanciation
detector = cv2.aruco.ArucoDetector(arucoDict, arucoParams)
# corners, ids, rejected = cv2.aruco.detectMarkers(frame, arucoDict, arucoParams) is replaced by:
corners, ids, rejected = detector.detectMarkers(frame)