MLKitTextRecognitionCommon Framework Reference

  • MLKText represents recognized text within an image, providing access to the text string itself.

  • It includes an array of MLKTextBlock objects, representing individual blocks of recognized text.

  • If no text is recognized, the text property will be an empty string.

  • Initializing MLKText directly is not allowed; it's likely obtained through other API methods.

Text

class Text : NSObject

Recognized text in an image.

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

    Declaration

    Swift

    var text: String { get }
  • An array of blocks recognized in the text.

    Declaration

    Swift

    var blocks: [MLKTextBlock] { get }
  • Unavailable.