VisionLabel

class VisionLabel : NSObject

Represents a label for an image.

  • The rectangle that holds the discovered label relative to the detected image in the view coordinate system.

    Declaration

    Swift

    var frame: CGRect { get }
  • Confidence for the label in range [0, 1].

    Declaration

    Swift

    var confidence: Float { get }
  • Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API]. (https://developers.google.com/knowledge-graph/).

    Declaration

    Swift

    var entityID: String { get }
  • The human readable label string in American English. For example: Balloon.

    Note: this is not fit for display purposes, as it is not localized. Use the entityID and query the Knowledge Graph to get a localized description of the label.

    Declaration

    Swift

    var label: String { get }
  • Unavailable.