MBNoUpScalingDewarpPolicy

Objective-C


@interface MBNoUpScalingDewarpPolicy : MBDewarpPolicy

Swift

class MBNoUpScalingDewarpPolicy : MBDewarpPolicy

No upscaling dewarp policy. Dewarp height will be calculated in a way that no part of image will be up-scaled. However, if dewarp height calculated in this way is larger than value defined by maxAllowedDewarpHeight, then maxAllowedDewarpHeight will be used for dewarp height, effectively scaling down the image.

This policy is usually best for processor groups that use DEEP OCR, hologram detection or NN-based classification.

  • Default max allowed dewarp height used when using default constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    convenience init()
  • Declaration

    Objective-C

    - (nonnull instancetype)initWithMaxAllowedDewarpHeight:
        (NSInteger)maxAllowedDewarpHeight;

    Swift

    init(maxAllowedDewarpHeight: Int)

    Parameters

    maxAllowedDewarpHeight

    Max allowed dewarp height.

  • Returns the max allowed dewarp height as specified by this policy.

    Default: 400

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger maxAllowedDewarpHeight;

    Swift

    var maxAllowedDewarpHeight: Int { get }