com.google.mlkit.vision.text
Stay organized with collections
Save and categorize content based on your preferences.
Annotations
Interfaces
Classes
Text
|
A hierarchical representation of texts. |
Text.Element
|
Represents a space-separated segment in a line of
text (for example, a word in most Latin languages). |
Text.Line
|
Represents a line of text. |
Text.Symbol
|
Represents a single symbol in an Text.Element . |
Text.TextBlock
|
A block of text (think of it as a paragraph) as
deemed by the OCR engine. |
TextRecognition
|
Entry point for performing optical character
recognition(OCR) on an input image to detect latin-based characters. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eML Kit's Text Recognition API enables optical character recognition (OCR) on images to detect Latin-based characters.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a hierarchical representation of text, including blocks, lines, elements, and symbols.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the \u003ccode\u003eTextRecognizer\u003c/code\u003e interface and customize options with \u003ccode\u003eTextRecognizerOptionsInterface\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe API outputs structured text data represented by the \u003ccode\u003eText\u003c/code\u003e class and its sub-classes.\u003c/p\u003e\n"]]],["The provided content details text recognition features for detecting Latin-based characters in images. Key components include the `TextRecognizer` client for performing OCR and the `TextRecognizerOptionsInterface` for setting options. The `Text` class represents text hierarchically, divided into `TextBlock` (paragraphs), `Line`, `Element` (words), and `Symbol` (single characters). `TextRecognition` is the primary access point for performing OCR. `LanguageOption` allows you to define languages.\n"],null,["# com.google.mlkit.vision.text\n\n### Annotations\n\n|------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|\n| [TextRecognizerOptionsInterface.LanguageOption](/android/reference/com/google/mlkit/vision/text/TextRecognizerOptionsInterface.LanguageOption) | The language options for text recognition. |\n\n### Interfaces\n\n|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [TextRecognizer](/android/reference/com/google/mlkit/vision/text/TextRecognizer) | [TextRecognition](/android/reference/com/google/mlkit/vision/text/TextRecognition) client for performing optical character recognition(OCR) on an input image to detect latin-based characters. |\n| [TextRecognizerOptionsInterface](/android/reference/com/google/mlkit/vision/text/TextRecognizerOptionsInterface) | Interface for options for [TextRecognizer](/android/reference/com/google/mlkit/vision/text/TextRecognizer). |\n\n### Classes\n\n|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [Text](/android/reference/com/google/mlkit/vision/text/Text) | A hierarchical representation of texts. |\n| [Text.Element](/android/reference/com/google/mlkit/vision/text/Text.Element) | Represents a space-separated segment in a line of text (for example, a word in most Latin languages). |\n| [Text.Line](/android/reference/com/google/mlkit/vision/text/Text.Line) | Represents a line of text. |\n| [Text.Symbol](/android/reference/com/google/mlkit/vision/text/Text.Symbol) | Represents a single symbol in an [Text.Element](/android/reference/com/google/mlkit/vision/text/Text.Element). |\n| [Text.TextBlock](/android/reference/com/google/mlkit/vision/text/Text.TextBlock) | A block of text (think of it as a paragraph) as deemed by the OCR engine. |\n| [TextRecognition](/android/reference/com/google/mlkit/vision/text/TextRecognition) | Entry point for performing optical character recognition(OCR) on an input image to detect latin-based characters. |"]]