Table of contents

LayoutAnalysisResult

The LayoutAnalysisResult structure holds comprehensive results of the layout analysis. It is managed by the engine and must be explicitly released via CLayoutAnalyzer::ReleaseResult().

Definition

Assembly: DynamsoftUtility

Header File: DynamsoftUtility.h

typedef struct LayoutAnalysisResult
{
    CQuadrilateral* inferredQuads;
    int inferredQuadCount;
    LayoutElement** elements;
    int rowCount;
    int colCount;
    LayoutPattern detectedPattern;
    int errorCode;
    char reserved[32];
} LayoutAnalysisResult;

Attributes

Attribute Type Description
inferredQuads CQuadrilateral* Array of newly generated (inferred) quads.
inferredQuadCount int Total number of inferred quadrilaterals.
elements LayoutElement** A 2D array (grid) of layout elements.
rowCount int Number of rows (Primary Axis direction).
colCount int Maximum number of columns across all rows (Secondary Axis direction).
detectedPattern LayoutPattern The actual layout pattern identified by the engine.
errorCode int 0 for success, non-zero for error.

inferredQuads

Array of newly generated (inferred) quads.

CQuadrilateral* inferredQuads;

See Also

CQuadrilateral

inferredQuadCount

Total number of inferred quadrilaterals.

int inferredQuadCount;

elements

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

LayoutElement** elements;

See Also

LayoutElement

rowCount

Number of rows (Primary Axis direction).

int rowCount;

colCount

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

int colCount;

detectedPattern

The actual layout pattern identified by the engine.

LayoutPattern detectedPattern;

See Also

LayoutPattern

errorCode

0 for success, non-zero for error.

int errorCode;

This page is compatible for: