MBAmountParser
@interface MBAmountParser : MBParser <NSCopying>
MBAmountParser is used for extracting amount from OCR result
-
Undocumented
Declaration
Objective-C
MB_INIT
Swift
init()
-
Amount parser result
Declaration
Objective-C
@property (readonly, strong, nonatomic) MBAmountParserResult *_Nonnull result;
Swift
var result: MBAmountParserResult { get }
-
Indicates whether negative values are accepted as valid amounts. Setting this to YES can yield to more false positives.
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL allowNegativeAmounts;
Swift
var allowNegativeAmounts: Bool { get set }
-
Indicates whether amounts with space separators between groups of digits(thousands) are allowed.
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL allowSpaceSeparators;
Swift
var allowSpaceSeparators: Bool { get set }
-
Indicates whether amounts without decimal are accepted as valid. For example 1.465 is accepted as valid amount, but 1465 is not, unless this is set to YES. Setting this to {@code true} can yield to more false positives because any set of consequent digits can represent valid amount.
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL allowMissingDecimals;
Swift
var allowMissingDecimals: Bool { get set }
-
Indicates whether Arabic-Indic mode is enabled. In Arabic-Indic mode parser can recognize only amounts which consist of Arabic-Indic digits and decimal separator.
Default: NO
Declaration
Objective-C
@property (assign, readwrite, nonatomic) BOOL arabicIndicMode;
Swift
var arabicIndicMode: Bool { get set }