MLKImageLabel
@interface MLKImageLabel : NSObject
代表圖片的標籤。
-
分類器模型傳回的標籤文字。
聲明
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull text;
-
標籤的索引。
聲明
Objective-C
@property (nonatomic, readonly) NSInteger index;
-
標籤的可信度,這個數值的範圍取決於使用的分類器模型,但依照慣例應為 [0, 1]。針對使用
ImageLabelerOptions
建立的ImageLabeler
,範圍是 [0, 1]。聲明
Objective-C
@property (nonatomic, readonly) float confidence;
-
無法使用,
聲明
Objective-C
- (nonnull instancetype)init;