Table of contents

LayoutAnalyzer

The LayoutAnalyzer class provides a high-performance layout analysis engine. It analyzes the spatial distribution of quadrilaterals to detect and map structural patterns (Lines or Matrix), with logical grid position mapping and gap-filling inference.

Definition

Module: utility

class LayoutAnalyzer:

Methods

Method Description
analyze Performs layout analysis on an array of quadrilaterals and returns a result set.

analyze

Performs layout analysis and returns a result set.

@staticmethod
def analyze(inputQuads: List[Quadrilateral], param: LayoutAnalysisParameter = None) -> LayoutAnalysisResult:

Parameters

inputQuads Array of input quadrilaterals.

param Optional parameters to constrain the analysis.

Return Value

Returns a LayoutAnalysisResult object, or None on failure.

See Also

Quadrilateral

LayoutAnalysisParameter

LayoutAnalysisResult

This page is compatible for: