MLKitTextRecognition Framework Reference

TextElement

class TextElement : NSObject

A text element recognized in an image. A text element is roughly equivalent to a space-separated word in most Latin-script languages.

  • String representation of the text element that was recognized.

    Declaration

    Swift

    var text: String { get }
  • The rectangle that contains the text element relative to the image in the default coordinate space.

    Declaration

    Swift

    var frame: CGRect { get }
  • The four corner points of the text element in clockwise order starting with the top left point relative to the image in the default coordinate space. The NSValue objects are CGPoints.

    Declaration

    Swift

    var cornerPoints: [NSValue] { get }
  • Unavailable.