Table of contents

LayoutAnalysisParameter

The LayoutAnalysisParameter class holds input parameters to guide the layout analysis.

Definition

Module: utility

class LayoutAnalysisParameter:

Properties

Property Type Description
pattern EnumLayoutPattern Desired layout pattern.
axes List[LayoutAxis] Configuration for Primary (0) and Secondary (1) axes.
input_image_width int Width of the source image in pixels.
input_image_height int Height of the source image in pixels.

pattern

Desired layout pattern. Use LP_UNKNOWN for auto-detection.

pattern: EnumLayoutPattern

See Also

EnumLayoutPattern

axes

Configuration for Primary (axis 0) and Secondary (axis 1) axes.

axes: List[LayoutAxis]

See Also

LayoutAxis

input_image_width

Width of the source image in pixels. When provided, prevents inferred quads from extending beyond the image bounds. Default: 0 (no boundary check).

input_image_width: int

input_image_height

Height of the source image in pixels. When provided, prevents inferred quads from extending beyond the image bounds. Default: 0 (no boundary check).

input_image_height: int

This page is compatible for: