aboutsummaryrefslogtreecommitdiff
path: root/src/examples/export_calibration_board.py
blob: 24d746103afe0f62b579ebdc38c21244af8860e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python

"""
export_board.py

Author: 
    - Théo de la Hogue, theo.de-la-hogue@enac.fr

"""
import os
from argaze.ArUcoMarkers import ArUcoBoard

# manage export folder
current_folder = os.path.dirname(__file__)
export_folder = os.path.join(current_folder, '_export')
if not os.path.exists(export_folder):
    os.makedirs(export_folder)
    print(f'\'_export\' folder created')

# create aruco board
aruco_board = ArUcoBoard.ArUcoBoard('DICT_4X4_50', 7, 5, 5, 3) # 7 columns, 5 rows, square size (cm), marker size (cm)

# export aruco board
aruco_board.export(export_folder, 50) # destination folder, dpi