Referência do framework MLKitTextRecognitionCommon
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
MLKTextBlock
@interface MLKTextBlock : NSObject
Um bloco de texto reconhecido em uma imagem que consiste em uma matriz de linhas de texto.
-
Representação de string do bloco de texto que foi reconhecido.
Declaração
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
-
Uma matriz de linhas de texto que compõem o bloco.
Declaração
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextLine *> *_Nonnull lines;
-
O retângulo que contém o bloco de texto relativo à imagem no espaço de coordenadas padrão.
Declaração
Objective-C
@property (nonatomic, readonly) CGRect frame;
-
Uma matriz de idiomas reconhecidos no bloco de texto. Se nenhum idioma for reconhecido, a matriz será
vazio.
-
Os quatro pontos de canto do bloco de texto no sentido horário começando com o ponto superior esquerdo
em relação à imagem no espaço de coordenadas padrão. Os objetos NSValue
são CGPoint
s.
Declaração
Objective-C
@property (nonatomic, readonly) NSArray<NSValue *> *_Nonnull cornerPoints;
-
Declaração
Objective-C
- (nonnull instancetype)init;
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-08-20 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2024-08-20 UTC."],[[["`MLKTextBlock` represents a recognized text block from an image, containing an array of text lines."],["It provides access to the text content, individual lines, bounding box, recognized languages, and corner points of the block."],["The `frame` property defines the block's location and size within the image's coordinate space."],["`recognizedLanguages` offers information about the detected languages within the text block."],["Corner points of the text block are accessible via the `cornerPoints` property, useful for spatial understanding."]]],["`MLKTextBlock` represents a text block within an image. It provides a string representation (`text`) of the recognized text and an array of constituent text lines (`lines`). It also defines the bounding rectangle (`frame`) and corner points (`cornerPoints`) of the block within the image's coordinate space. Furthermore, it lists any detected languages (`recognizedLanguages`) present in the text. It has an unavailable init method.\n"]]