Layout

class text_renderer.layout.Layout[source]
abstract apply(text_bboxes: List[text_renderer.utils.bbox.BBox], img_bboxes: List[text_renderer.utils.bbox.BBox]) → List[text_renderer.utils.bbox.BBox][source]
Parameters
  • text_bboxes (list of BBox) – Text bbox on image

  • img_bboxes (list of BBox) – Image bbox

Returns

Modified img_bboxes in same coordinate

Return type

list of BBox

merge_texts(font_texts: List[text_renderer.utils.font_text.FontText]) → str[source]

Output text after merge

Parameters

font_texts (list of BBox) – FontText

Returns

Merged text

Return type

str