MBOcrLine
@interface MBOcrLine : NSObject
Class representing an Ocr line. line consists of one or more Ocr chars
See
MBOcrChar-
Ocr chars of the line
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSArray<MBCharWithVariants *> *_Nonnull chars;Swift
var chars: [MBCharWithVariants] { get set } -
Position of the line on the image, in the coordinate system of the image
Declaration
Objective-C
@property (assign, readwrite, nonatomic) MBPosition *_Nonnull position;Swift
var position: MBPosition { get set } -
Please use designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init; -
Initializer from chars
Declaration
Objective-C
- (nonnull instancetype)initWithOcrChars: (nonnull NSArray<MBCharWithVariants *> *)ocrChars position:(nonnull MBPosition *)position;Swift
init(ocrChars: [MBCharWithVariants], position: MBPosition)Parameters
ocrCharsocr chars
positionposition of the line on image
Return Value
initialized ocr line
-
Helper method which returna a simple string representation of the ocr line
Declaration
Objective-C
- (nonnull NSString *)string;Swift
func string() -> StringReturn Value
ocr line converted to string
View on GitHub
MBOcrLine Class Reference