MLKitTextRecognitionCommon Framework Reference

  • MLKText represents recognized text within an image and provides access to the text string and its structure.

  • The text property holds the recognized text string, which will be empty if no text was recognized.

  • Recognized text is organized into blocks, accessible through the blocks property as an array of MLKTextBlock objects.

  • You cannot directly initialize an MLKText object using the init method.

MLKText


@interface MLKText : NSObject

Recognized text in an image.

  • The recognized text. The string is empty if no text was recognized.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull text;
  • An array of blocks recognized in the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MLKTextBlock *> *_Nonnull blocks;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;