Difference between revisions of "Template:Code"

From RoboWiki
Jump to: navigation, search
(Created page with " aruco_type = "DICT_6X6_50" id = 1 arucoDict = cv2.aruco.getPredefinedDictionary(ARUCO_DICT[aruco_type]) print("ArUCo type '{}' with ID '{}'".format(aruco_type, id)) tag_siz...")
 
(No difference)

Latest revision as of 19:42, 15 February 2025

aruco_type = "DICT_6X6_50" id = 1

arucoDict = cv2.aruco.getPredefinedDictionary(ARUCO_DICT[aruco_type])

print("ArUCo type '{}' with ID '{}'".format(aruco_type, id)) tag_size = 100 tag = np.zeros((tag_size, tag_size, 1), dtype="uint8") cv2.aruco.generateImageMarker(arucoDict, id, tag_size, tag, 1)