Table of contents

LayoutAnalysisResult

The LayoutAnalysisResult class holds the comprehensive results of the layout analysis.

Definition

Module: utility

class LayoutAnalysisResult:

Properties

Property Type Description
inferred_quads List[Quadrilateral] Array of newly generated (inferred) quads.
elements List[List[LayoutElement]] A 2D array (grid) of layout elements.
row_count int Number of rows (Primary Axis direction).
col_count int Maximum number of columns across all rows (Secondary Axis direction).
detected_pattern EnumLayoutPattern The actual layout pattern identified by the engine.
error_code int 0 for success, non-zero for error.

inferred_quads

Array of newly generated (inferred) quads.

inferred_quads: List[Quadrilateral]

See Also

Quadrilateral

elements

A 2D array (grid) of layout elements [row_count][col_count]. In LP_LINES mode, rows may have varying physical lengths. Rows shorter than col_count are padded with elements whose source is set to LES_NONE.

elements: List[List[LayoutElement]]

See Also

LayoutElement

row_count

Number of rows (Primary Axis direction).

row_count: int

col_count

Maximum number of columns across all rows (Secondary Axis direction).

col_count: int

detected_pattern

The actual layout pattern identified by the engine.

detected_pattern: EnumLayoutPattern

See Also

EnumLayoutPattern

error_code

0 for success, non-zero for error.

error_code: int

This page is compatible for: