aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/aruco_markers/markers_creation.md
blob: eab9890895e16a7bd3690e2f73619405d92bed22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Markers creation
================

The creation of [ArUcoMarkers](../../argaze.md/#argaze.ArUcoMarkers.ArUcoMarker) from a dictionary is illustrated in the code below:
 
``` python
from argaze.ArUcoMarkers import ArUcoMarkersDictionary

# Create a dictionary of specific April tags
aruco_dictionary = ArUcoMarkersDictionary.ArUcoMarkersDictionary('DICT_APRILTAG_16h5')

# Export marker n°5 as 3.5 cm picture with 300 dpi resolution
aruco_dictionary.create_marker(5, 3.5).save('./markers/', 300)

# Export all dictionary markers as 3.5 cm pictures with 300 dpi resolution
aruco_dictionary.save('./markers/', 3.5, 300)
```