MBICharWithVariants
@interface MBICharWithVariants : NSObject
/**
* Character that was recognised
*/
@property (nonatomic) MBIOcrChar * character;
/**
* Alternative characters which are possible instead of this character.
*
* In the list of characters, each char (unicode value), can appear multiple times, each time with different font.
* This means variant is uniquely defined with a combination of value and font properties.
*
* Each variant has quality property set, so you can use it to verify other options.
*
* @Warning If you use variants, please note you need to take font into account.
*/
@property (nonatomic) NSSet *variants;
- (instancetype)init NS_UNAVAILABLE;
/**
* Initializer for a CharWithVariant
*
* @param character Character with all recognition information (value, font, position, etc.)
*
* @return initialized char with zero variants
*/
- (instancetype)initWithValue:(MBIOcrChar *)character NS_DESIGNATED_INITIALIZER;
@end
Undocumented
-
Character that was recognised
Declaration
Objective-C
@property (nonatomic) MBIOcrChar *_Nonnull character;
Swift
var character: MBIOcrChar { get set }
-
Alternative characters which are possible instead of this character.
In the list of characters, each char (unicode value), can appear multiple times, each time with different font. This means variant is uniquely defined with a combination of value and font properties.
Each variant has quality property set, so you can use it to verify other options.
@Warning If you use variants, please note you need to take font into account.
Declaration
Objective-C
@property (nonatomic) NSSet *_Nonnull variants;
Swift
var variants: Set<AnyHashable> { get set }
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Initializer for a CharWithVariant
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(nonnull MBIOcrChar *)character;
Swift
init(value character: MBIOcrChar)
Parameters
character
Character with all recognition information (value, font, position, etc.)
Return Value
initialized char with zero variants