LayoutProcessor
- class burdoc.processors.layout_processor.LayoutProcessor(log_level: int = 20)
The LayoutProcessor handles dividing the page into sections, assigning text within each section and ‘blocking’ lines into paragraphs.
Requires: [‘page_bounds’, ‘image_elements’, ‘drawing_elements’, ‘text_elements’] Optional: [] Generates: [‘elements’]
- add_generated_items_to_fig(page_number: int, fig: Figure, data: Dict[str, Any])
Draw any items generated by this processor to a page image
- generates() List[str]
Return list of fields added by this processor
- requirements() Tuple[List[str], List[str]]
Return list of required data fields and list of optional data fields