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

The creation of ArUco markers 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)
```