MBFixedDewarpPolicy
Objective-C
@interface MBFixedDewarpPolicy : MBDewarpPolicy
Swift
class MBFixedDewarpPolicy : MBDewarpPolicy
Fixed dewarp policy. Dewarp height will be exactly as defined by its dewarpHeight.
This policy is usually best for processor groups that use legacy BlinkOCR.
-
Default dewarp height value used when using default constructor.
Declaration
Objective-C
- (nonnull instancetype)init;
Swift
convenience init()
-
Declaration
Objective-C
- (nonnull instancetype)initWithDewarpHeight:(NSInteger)dewarpHeight;
Swift
init(dewarpHeight: Int)
Parameters
dewarpHeight
Desired dewarp height in pixels. Note that if device does not support given dewarp height, the max supported by the device will be used.
-
Returns the desired dewarp height (in pixels) as specified by this policy.
Default: 100
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger dewarpHeight;
Swift
var dewarpHeight: Int { get }