MBIBaseOcrEngineOptions


@interface MBIBaseOcrEngineOptions : NSObject

Options used for OCR process. These options enable you to customize how some OCR parsers work. For example, you can set character whitelists, character height, supported fonts etc.

  • Maximal chars expected on the image.

    Setting this value can speed up the OCR processing because all images with more chars than specified will be ignored (becuase in most cases they are noise)

    Default: 3000

    Declaration

    Objective-C

    @property (nonatomic) NSInteger maxCharsExpected;

    Swift

    var maxCharsExpected: Int { get set }
  • Specifies if the additional image processing which drops the background colors should be performed.

    Use this if you have black text on color backgrounds. If you have black text on white background, using this is not needed as it slows down processing. If you have color text, don’t use it at all because color dropout will remove the text.

    Default: NO

    Declaration

    Objective-C

    @property (nonatomic) BOOL colorDropoutEnabled;

    Swift

    var colorDropoutEnabled: Bool { get set }