MLKitObjectDetection – Common Framework-Referenz
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
MLKObject
@interface MLKObject : NSObject
Ein Objekt in einem Bild erkannt.
-
Das Rechteck, das das erkannte Objekt relativ zum Bild in der Koordinate der Ansicht hält
System.
Erklärung
Objective-C
@property (nonatomic, readonly) CGRect frame;
-
Ein Array von Labels, die das vom Detektor zurückgegebene Objekt beschreiben. Die Eigenschaft ist leer, wenn die
Die Detektoroption shouldEnableClassification
ist auf NO
gesetzt.
Erklärung
Objective-C
@property (nonatomic, readonly) NSArray<MLKObjectLabel *> *_Nonnull labels;
-
Die Tracking-ID des erkannten Objekts. Der Wert ist ein nicht negativer Wert für integerValue
. Die
Der Wert ist nil
, wenn keine Tracking-ID angegeben wurde.
Erklärung
Objective-C
@property (nonatomic, readonly, nullable) NSNumber *trackingID;
-
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: 2025-07-25 (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: 2025-07-25 (UTC)."],[[["`MLKObject` represents an object detected within an image, providing information about its location and characteristics."],["It includes properties like `frame` for object's location, `labels` for descriptive information (if enabled), and `trackingID` for identifying objects across frames."],["The `frame` property defines a rectangle indicating the detected object's position relative to the image."],["`labels` property provides an array of descriptive labels, but only when classification is enabled during detection."],["`trackingID` offers a unique identifier for tracking the object over time, which can be null if tracking wasn't set up."]]],["MLKObject represents an object detected in an image. Key properties include `frame`, a `CGRect` defining the object's position; `labels`, an array of `MLKObjectLabel` describing the object, present if classification is enabled; and `trackingID`, a unique identifier for the object if provided. The `init` method is unavailable. These elements provide information about the location, classification, and tracking of a detected object within an image.\n"]]