Skip to main content

Module marks

Module marks 

Source
Expand description

Pure-image set-of-marks overlay.

Numbers every rectangle in boxes on a copy of source and draws a small filled label in the top-left of each rect. Numerals are rendered with an embedded 4x6 bitmap font so the module stays free of fontdue or any platform font APIs.

Structs§

ImageRect
Rectangle in image pixels.
MarkBox
One rectangle plus its human-readable label.

Functions§

draw_marks
Draw boxes on a copy of source and return the marked image.
marks_for_nodes
Numbered boxes for every node of root whose frame lands inside map.
ocr_label
Map an OCR observation (zero-based) to the oN label the protocol uses.
tree_label
Map an element index from the latest tree to its label.