arucopatternmaker.algorithms.algorithms module
Algorithms for the ArUco pattern maker application
- arucopatternmaker.algorithms.algorithms.draw_marker(ctx, id10, tag_width, tag_height, pos_x, pos_y, marker_colour=None, page_offset=None)[source]
draws an ArUco marker on the canvas
- Parameters
ctx – the canvas context to draw on
id10 – the marker id to draw in base 10
tag_width – The marker width
tag_height – The marker height
pos_x – The marker centre (horizontal)
pos_y – The marker centre (vertical)
marker_colour – The marker colour to use, default black
- Returns
a string defining the marker for a reference file