Expand description
Enhanced layout sorting logic — xycut_enhanced algorithm.
Faithful port of PaddleX’s xycut_enhanced strategy:
- Header/Footer separation
- Cross-layout detection (blocks spanning multiple columns)
- Direction-aware XY-cut sorting
- Overlapping box shrinking before projection
- Weighted distance insertion for special blocks
- Child block association (vision titles → vision parents)
Structs§
- Sortable
Block - A wrapper around layout elements with properties needed for sorting.
- Sortable
Element - Input element for enhanced sorting.
Enums§
- Order
Label - Label used for sorting logic.
Functions§
- sort_
layout_ enhanced - Main entry point for enhanced sorting.