MBCharWithVariants

@interface MBCharWithVariants : NSObject

/**
 * Character that was recognised
 */
@property (nonatomic) MBOcrChar * 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:(MBOcrChar *)character NS_DESIGNATED_INITIALIZER;

@end

Undocumented

  • Character that was recognised

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        MBOcrChar *_Nonnull character;

    Swift

    var character: MBOcrChar { 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, assign, unsafe_unretained, readwrite)
        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 MBOcrChar *)character;

    Swift

    init(value character: MBOcrChar)

    Parameters

    character

    Character with all recognition information (value, font, position, etc.)

    Return Value

    initialized char with zero variants