Page Summary
-
ML Kit Text Recognition provides classes for recognizing and structuring text within images.
-
These classes enable access to recognized text, including elements, lines, blocks, and language identification.
-
Developers can utilize the
TextRecognizerclass to process images and obtain recognized text data. -
The structured representation via
Text,TextBlock,TextLine, andTextElementallows for detailed text analysis and manipulation. -
Common options for text recognition are available through
CommonTextRecognizerOptions.
Classes
The following classes are available globally.
-
Common options for ML Kit Text Recognizer.
Declaration
Swift
class CommonTextRecognizerOptions : NSObject -
Recognized text in an image.
Declaration
Swift
class Text : NSObject -
A text block recognized in an image that consists of an array of text lines.
Declaration
Swift
class TextBlock : NSObject -
A text element recognized in an image. A text element is a space-separated segment in a text line (for example, a word in most Latin-script languages).
Declaration
Swift
class TextElement : NSObject -
A text line recognized in an image that consists of an array of elements.
Declaration
Swift
class TextLine : NSObject -
Detected language from text recognition.
Declaration
Swift
class TextRecognizedLanguage : NSObject -
A text recognizer that recognizes text in an image.
Declaration
Swift
class TextRecognizer : NSObject