MLKitObjectDetectionCommon Framework Reference

Stay organized with collections Save and categorize content based on your preferences.

ObjectLabel

class ObjectLabel : NSObject

A label that describes an object detected in an image.

  • The text returned here depends on the classifier model used.

    Declaration

    Swift

    var text: String { get }
  • The index of the label.

    Declaration

    Swift

    var index: Int { get }
  • The confidence that the label applies to the detected object. Its range depends on the classifier model used, but by convention it should be [0, 1]. For an ObjectDetector created with ObjectDetectorOptions, the range is [0, 1].

    Declaration

    Swift

    var confidence: Float { get }
  • Unavailable.