Table of contents

DSLayoutAnalysisResult

The DSLayoutAnalysisResult class represents the comprehensive results of the layout analysis.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

  • Objective-C
  • Swift
  1. NS_SWIFT_NAME(LayoutAnalysisResult)
    @interface DSLayoutAnalysisResult : NSObject
    
  2. class LayoutAnalysisResult : NSObject
    

Attributes

Attribute Type Description
inferredQuads NSArray<DSQuadrilateral *> * Array of newly generated quadrilaterals.
elements NSArray<NSArray<DSLayoutElement *> *> * A 2D array of layout elements [rowCount][colCount].
rowCount NSInteger Number of rows in the analyzed layout.
colCount NSInteger Maximum number of columns across all rows.
detectedPattern DSLayoutPattern The actual layout pattern identified by the engine.
errorCode NSInteger 0 for success, non-zero for error.

inferredQuads

Array of newly generated quadrilaterals.

  • Objective-C
  • Swift
  1. @property (nonatomic, strong) NSArray<DSQuadrilateral *> *inferredQuads;
    
  2. var inferredQuads: [Quadrilateral] { get set }
    

elements

A 2D array of layout elements [rowCount][colCount].

  • Objective-C
  • Swift
  1. @property (nonatomic, strong) NSArray<NSArray<DSLayoutElement *> *> *elements;
    
  2. var elements: [[LayoutElement]] { get set }
    

rowCount

Number of rows in the analyzed layout.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger rowCount;
    
  2. var rowCount: Int { get set }
    

colCount

Maximum number of columns across all rows.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger colCount;
    
  2. var colCount: Int { get set }
    

detectedPattern

The actual layout pattern identified by the engine.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) DSLayoutPattern detectedPattern;
    
  2. var detectedPattern: LayoutPattern { get set }
    

errorCode

0 for success, non-zero for error.

  • Objective-C
  • Swift
  1. @property (nonatomic, assign) NSInteger errorCode;
    
  2. var errorCode: Int { get set }
    

This page is compatible for: