Dokumentacja platformy MLKitTextRecognitionCommon
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
MLKTextBlock
@interface MLKTextBlock : NSObject
Blok tekstowy rozpoznawany na obrazie składającym się z tablicy tekstu.
-
Ciąg znaków reprezentujący rozpoznany blok tekstowy.
Deklaracja
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
-
Tablica wierszy tekstowych tworzących bryłę.
Deklaracja
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextLine *> *_Nonnull lines;
-
Prostokąt zawierający blok tekstowy w odniesieniu do obrazu w domyślnej przestrzeni współrzędnych.
Deklaracja
Objective-C
@property (nonatomic, readonly) CGRect frame;
-
Tablica rozpoznanych języków w bloku tekstowym. Jeśli nie rozpoznano żadnego języka, tablica ma postać
puste.
-
Cztery punkty narożnika bloku tekstowego w kolejności w prawo, zaczynając od lewego górnego punktu.
względem obrazu w domyślnej przestrzeni współrzędnych. Obiekty NSValue
to CGPoint
.
Deklaracja
Objective-C
@property (nonatomic, readonly) NSArray<NSValue *> *_Nonnull cornerPoints;
-
Deklaracja
Objective-C
- (nonnull instancetype)init;
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-20 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]