AI-generated Key Takeaways
-
ImageLabelrepresents a label assigned to an image by a classifier model. -
Each label has
textdescribing the label,indexfor its position, andconfidenceindicating the model's certainty. -
The
confidencevalue, typically ranging from 0 to 1, reflects the likelihood of the label's accuracy. -
ImageLabelinstances are generated by the classifier and cannot be directly initialized.
ImageLabel
class ImageLabel : NSObjectRepresents a label for an image.
-
The text of the label returned by the classifier model.
Declaration
Swift
var text: String { get } -
The index of the label.
Declaration
Swift
var index: Int { get } -
The confidence of the label. Its range depends on the classifier model used, but by convention it should be [0, 1]. For an
ImageLabelercreated withImageLabelerOptions, the range is [0, 1].Declaration
Swift
var confidence: Float { get } -
Unavailable.