DSLayoutAnalysisResult
The DSLayoutAnalysisResult class represents the comprehensive results of the layout analysis.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
NS_SWIFT_NAME(LayoutAnalysisResult) @interface DSLayoutAnalysisResult : NSObjectclass 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
@property (nonatomic, strong) NSArray<DSQuadrilateral *> *inferredQuads;var inferredQuads: [Quadrilateral] { get set }
elements
A 2D array of layout elements [rowCount][colCount].
- Objective-C
- Swift
@property (nonatomic, strong) NSArray<NSArray<DSLayoutElement *> *> *elements;var elements: [[LayoutElement]] { get set }
rowCount
Number of rows in the analyzed layout.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger rowCount;var rowCount: Int { get set }
colCount
Maximum number of columns across all rows.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger colCount;var colCount: Int { get set }
detectedPattern
The actual layout pattern identified by the engine.
- Objective-C
- Swift
@property (nonatomic, assign) DSLayoutPattern detectedPattern;var detectedPattern: LayoutPattern { get set }
errorCode
0 for success, non-zero for error.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger errorCode;var errorCode: Int { get set }