Skip to main content

Module layout_analysis

Module layout_analysis 

Source
Expand description

Layout analysis utilities — page geometry classification, margin detection, and content density analysis for multi-column and complex layouts.

Structs§

ContentDensity
Content density info for a page.
PageMargins
Detected page margins.

Enums§

LayoutType
Classification of a page layout.

Functions§

classify_layout
Classify the layout type of a page based on its content elements.
compute_density
Compute content density for a page.
detect_margins
Detect page margins from content bounding boxes.