Referencia del framework MLKitTextRecognitionCommon
Texto
Texto reconocido en una imagen.
-
Es el texto reconocido. La cadena estará vacía si no se reconoció texto.
Declaración
Swift
var text: String { get }
-
Array de bloques reconocidos en el texto.
Declaración
Swift
var blocks: [MLKTextBlock] { get }
-
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-08-22 (UTC)
[null,null,["Última actualización: 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"]]