Skip to main content

Module layout_sorting

Module layout_sorting 

Source
Expand description

Enhanced layout sorting logic compatible with PP-StructureV3.

This module implements the xycut_enhanced strategy which handles complex layouts by separating headers/footers, identifying cross-column elements, and using weighted distance metrics to insert titles and figures into the reading order.

Structs§

SortableBlock
A wrapper around layout elements with properties needed for sorting.

Enums§

OrderLabel
Label used for sorting logic.

Functions§

sort_layout_enhanced
Main entry point for enhanced sorting.