MBOcrChar


@interface MBOcrChar : NSObject

Class representing an individual OCR character obtained in the OCR process.

  • Unicode value of the char

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) unichar value;

    Swift

    var value: unichar { get set }
  • Position of the char on the image, in the coordinate system of the image

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        MBPosition *_Nonnull position;

    Swift

    var position: MBPosition { get set }
  • Height of the char

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) CGFloat height;

    Swift

    var height: CGFloat { get set }
  • YES if char is uncertain

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite, getter=isUncertain)
        BOOL uncertain;

    Swift

    var isUncertain: Bool { get set }
  • Integer value representing OCR quality of the char

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) NSInteger quality;

    Swift

    var quality: Int { get set }
  • Font of the character

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite) MBOcrFont font;

    Swift

    var font: MBOcrFont { get set }
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Initializer for a char

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValue:(unichar)value
                                 position:(nonnull MBPosition *)position
                                   height:(CGFloat)height;

    Swift

    init(value: unichar, position: MBPosition, height: CGFloat)

    Parameters

    value

    unicode value

    position

    position on the image

    height

    height of the char

    Return Value

    initialized char