MLKObjectLabel
@interface MLKObjectLabel : NSObject
說明圖片中偵測到物件的標籤。
-
這裡傳回的文字會因所用分類器模型而異。
聲明
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull text;
-
標籤的索引。
聲明
Objective-C
@property (nonatomic, readonly) NSInteger index;
-
標籤套用至偵測到物件的可信度。它的範圍取決於所用的分類器模型,但依照慣例,範圍應為 [0, 1]。針對使用
ObjectDetectorOptions
建立的ObjectDetector
,範圍是 [0, 1]。聲明
Objective-C
@property (nonatomic, readonly) float confidence;
-
無法使用,
聲明
Objective-C
- (nonnull instancetype)init;