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