Generating custom dictionary with aruco.custom_dictionary()

Hello beautiful people,
I am using opencv 4.5.5 and I want to create a large number of aruco codes using the
aruco.custom_dictionary() function. I have two questions about the generated aruco codes. :How is Id of each marker encoded in the bits sequence of the codes, and second how can I save the entire dictionary ??

The aruco module is based on the ArUco library, a popular library for detection of square fiducial markers developed by Rafael Muñoz and Sergio Garrido [88].

you will find all the specifics described there.

note that the authors of the aruco publications maintain their implementation, and OpenCV maintains its own. they are separate.

the ID encoding is probably compatible though.

1 Like

thank you for your quick respond. Unfortunately I couldn’t find how I can save a dictionary with lots of aruco codes (that isn’t one of the predefined dictionaries) so that I can use it in the detection as input for detectMarkers().