MLKitTextRecognitionCommon Framework Reference
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-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eMLKText\u003c/code\u003e represents recognized text within an image, providing access to the text string itself.\u003c/p\u003e\n"],["\u003cp\u003eIt includes an array of \u003ccode\u003eMLKTextBlock\u003c/code\u003e objects, representing individual blocks of recognized text.\u003c/p\u003e\n"],["\u003cp\u003eIf no text is recognized, the \u003ccode\u003etext\u003c/code\u003e property will be an empty string.\u003c/p\u003e\n"],["\u003cp\u003eInitializing \u003ccode\u003eMLKText\u003c/code\u003e directly is not allowed; it's likely obtained through other API methods.\u003c/p\u003e\n"]]],["The `Text` class represents recognized text within an image. It provides access to the `text` property, a string containing the recognized text, which is empty if no text is found. It also includes the `blocks` property, an array of `MLKTextBlock` objects representing the blocks of recognized text. The class has an initializer (`init`) that is unavailable for direct use.\n"],null,[]]