MBIOcrLine


@interface MBIOcrLine : NSObject

Class representing an Ocr line. line consists of one or more Ocr chars

See

MBIOcrChar
  • Ocr chars of the line

    Declaration

    Objective-C

    @property (nonatomic) NSArray<MBICharWithVariants *> *_Nonnull chars;

    Swift

    var chars: [MBICharWithVariants] { get set }
  • Position of the line 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 chars

    Declaration

    Objective-C

    - (nonnull instancetype)initWithOcrChars:
                                (nonnull NSArray<MBICharWithVariants *> *)ocrChars
                                    position:(nonnull MBIPosition *)position;

    Swift

    init(ocrChars: [MBICharWithVariants], position: MBIPosition)

    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