MLKitTextRecognition Common Framework-Referenz
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
MLKTextBlock
@interface MLKTextBlock : NSObject
Ein in einem Bild erkannter Textblock, der aus mehreren Textzeilen besteht.
-
Stringdarstellung des erkannten Textblocks.
Erklärung
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull text;
-
Mehrere Textzeilen, aus denen der Block besteht
Erklärung
Objective-C
@property (nonatomic, readonly) NSArray<MLKTextLine *> *_Nonnull lines;
-
Das Rechteck, das den Textblock relativ zum Bild im Standardkoordinatenraum enthält.
Erklärung
Objective-C
@property (nonatomic, readonly) CGRect frame;
-
Ein Array erkannter Sprachen im Textblock. Wenn keine Sprachen erkannt wurden, lautet das Array:
leer.
-
Die vier Eckpunkte des Textblocks im Uhrzeigersinn, beginnend mit dem oberen linken Punkt
relativ zum Bild im Standardkoordinatenraum. Die NSValue
-Objekte sind CGPoint
s.
Erklärung
Objective-C
@property (nonatomic, readonly) NSArray<NSValue *> *_Nonnull cornerPoints;
-
Erklärung
Objective-C
- (nonnull instancetype)init;
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-20 (UTC).
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 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"]]