Table of contents

DSLayoutAnalysisParameter

The DSLayoutAnalysisParameter class provides parameters to constrain the layout analysis.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

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

Attributes

Attribute Type Description
pattern DSLayoutPattern Desired layout pattern. Use DSLayoutPatternUnknown for auto-detection.
axes NSArray<DSLayoutAxis *> * Configuration for primary axis [0] and secondary axis [1].
inputImageWidth NSInteger Width of the reference image. Required when spacingUnit is MU_PERCENTAGE.
inputImageHeight NSInteger Height of the reference image. Required when spacingUnit is MU_PERCENTAGE.

pattern

Desired layout pattern. Use DSLayoutPatternUnknown for auto-detection.

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

axes

Configuration for primary axis [0] and secondary axis [1].

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

inputImageWidth

Width of the reference image. Required when spacingUnit is MU_PERCENTAGE.

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

inputImageHeight

Height of the reference image. Required when spacingUnit is MU_PERCENTAGE.

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

This page is compatible for: