MLKitObjectDetectionCommon Framework Reference

ObjectLabel

class ObjectLabel : NSObject

A label that describes an object detected in an image.

  • The human readable label text in American English. For example: “Balloon”.

    This string is not fit for display purposes, as it is not localized.

    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, in range [0, 1].

    Declaration

    Swift

    var confidence: Float { get }
  • Unavailable.