aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/aruco_markers/markers_creation.md
blob: 89c7fc6b5e2b25adfe3735df3329cab49b949f65 (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/#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)
```