March 2018
Beginner to intermediate
306 pages
9h 54m
English
As has been mentioned, AruCo markers have special designs and encode an identifier in black and white squares inside. So, to create the proper marker, it's necessary to follow the rules, and to also set parameters, such as the marker size and identifier. All of this can be done with the cv2.aruco.drawMarker function. It accepts a dictionary of the markers, an identifier of the marker, and image size. The dictionary determines the correspondence between the marker's appearance and the marker's ID, and returns the image with a drawn marker. OpenCV includes predefined dictionaries, which can be retrieved with the cv2.aruco.getPredefinedDictionary function (which takes the dictionary name as an argument). In the preceding code, ...