MBNoUpScalingDewarpPolicy


@interface 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:
        (NSUInteger)maxAllowedDewarpHeight;

    Swift

    init(maxAllowedDewarpHeight: UInt)

    Parameters

    maxAllowedDewarpHeight

    Max allowed dewarp height.

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

    Default: 400

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readonly)
        NSUInteger maxAllowedDewarpHeight;

    Swift

    var maxAllowedDewarpHeight: UInt { get }