MBIOcrBlock
@interface MBIOcrBlock : NSObject
Class representing an Ocr Block. Block consists of one or more Ocr Lines.
See
MBIOcrLine-
Ocr lines of the block
Declaration
Objective-C
@property (nonatomic) NSArray<MBIOcrLine *> *_Nonnull lines;
Swift
var lines: [MBIOcrLine] { get set }
-
Position of the block on the image, in the coordinate system of the image
Declaration
Objective-C
@property (nonatomic) MBIPosition *_Nonnull position;
Swift
var position: MBIPosition { get set }
-
Unavailable
Please use designated initializer.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializer from lines
Declaration
Objective-C
- (nonnull instancetype)initWithOcrLines: (nonnull NSArray<MBIOcrLine *> *)ocrLines position:(nonnull MBIPosition *)position;
Swift
init(ocrLines: [MBIOcrLine], position: MBIPosition)
Parameters
ocrLines
ocr lines
position
position of the block on image
Return Value
initialized ocr block
-
Helper method which returna a simple string representation of the ocr block
Declaration
Objective-C
- (nonnull NSString *)string;
Swift
func string() -> String
Return Value
ocr block converted to string