I tried to run this code but it gives error.
import cv2
arucoDict = cv2.aruco.Dictionary_get(cv2.aruco.DICT_6X6_50)
arucoParams = cv2.aruco.DetectorParameters_create()
(corners, ids, rejected) = cv2.aruco.detectMarkers("arucoimg.png", arucoDict, parameters=arucoParams)
print(corners, ids, rejected)
I can't finish rest of the code due to this problem. However I copied that code on the Internet.