MBCOcrLine
Objective-C
@interface MBCOcrLine : NSObject
Swift
class MBCOcrLine : NSObject
Class representing an Ocr line. line consists of one or more Ocr chars
See
MBCOcrChar-
Ocr chars of the line
Declaration
Objective-C
@property (nonatomic) NSArray<MBCCharWithVariants *> *_Nonnull chars;
Swift
var chars: [MBCCharWithVariants] { get set }
-
Position of the line on the image, in the coordinate system of the image
Declaration
Objective-C
@property (nonatomic) MBCPosition *_Nonnull position;
Swift
var position: MBCPosition { get set }
-
Unavailable
Please use designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializer from chars
Declaration
Objective-C
- (nonnull instancetype)initWithOcrChars: (nonnull NSArray<MBCCharWithVariants *> *)ocrChars position:(nonnull MBCPosition *)position;
Swift
init(ocrChars: [MBCCharWithVariants], position: MBCPosition)
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