MBPOcrChar
Objective-C
@interface MBPOcrChar : NSObject
Swift
class MBPOcrChar : NSObject
Class representing an individual OCR character obtained in the OCR process.
-
Unicode value of the char
Declaration
Objective-C
@property (nonatomic) 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) MBPPosition *_Nonnull position;Swift
var position: MBPPosition { get set } -
Height of the char
Declaration
Objective-C
@property (nonatomic) CGFloat height;Swift
var height: CGFloat { get set } -
YES if char is uncertain
Declaration
Objective-C
@property (nonatomic, getter=isUncertain) BOOL uncertain;Swift
var isUncertain: Bool { get set } -
Integer value representing OCR quality of the char
Declaration
Objective-C
@property (nonatomic) NSInteger quality;Swift
var quality: Int { get set } -
Font of the character
Declaration
Objective-C
@property (nonatomic) MBPOcrFont font;Swift
var font: MBPOcrFont { get set } -
Initializer for a char
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(unichar)value position:(nonnull MBPPosition *)position height:(CGFloat)height;Swift
init(value: unichar, position: MBPPosition, height: CGFloat)Parameters
valueunicode value
positionposition on the image
heightheight of the char
Return Value
initialized char
View on GitHub