DSLayoutAnalysisParameter
The DSLayoutAnalysisParameter class provides parameters to constrain the layout analysis.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
NS_SWIFT_NAME(LayoutAnalysisParameter) @interface DSLayoutAnalysisParameter : NSObjectclass 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
@property (nonatomic, assign) DSLayoutPattern pattern;var pattern: LayoutPattern { get set }
axes
Configuration for primary axis [0] and secondary axis [1].
- Objective-C
- Swift
@property (nonatomic, strong) NSArray<DSLayoutAxis *> *axes;var axes: [LayoutAxis] { get set }
inputImageWidth
Width of the reference image. Required when spacingUnit is MU_PERCENTAGE.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger inputImageWidth;var inputImageWidth: Int { get set }
inputImageHeight
Height of the reference image. Required when spacingUnit is MU_PERCENTAGE.
- Objective-C
- Swift
@property (nonatomic, assign) NSInteger inputImageHeight;var inputImageHeight: Int { get set }