MBOcrLine
Objective-C
@interface MBOcrLine : NSObject
Swift
class 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 (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 (nonatomic) MBPosition *_Nonnull position;
Swift
var position: MBPosition { get set }
-
Unavailable
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
ocrChars
ocr chars
position
position 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() -> String
Return Value
ocr line converted to string