MLKitTextRecognition Common Framework-Referenz
Text
In einem Bild erkannter Text.
-
Der erkannte Text. Die Zeichenfolge ist leer, wenn kein Text erkannt wurde.
Erklärung
Swift
var text: String { get }
-
Ein Array von im Text erkannten Blöcken.
Erklärung
Swift
var blocks: [MLKTextBlock] { get }
-
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-22 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-22 (UTC)."],[[["`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."]]],["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"]]