VisionImageLabel

class VisionImageLabel : NSObject

Represents a label for 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. Use the entityID and query the Knowledge Graph to get a localized description of the label text.

    Declaration

    Swift

    var text: String { get }
  • Confidence for the label in range [0, 1]. The value is a floatValue.

    Declaration

    Swift

    var confidence: NSNumber? { get }
  • Opaque entity ID used to query the Knowledge Graph to get a localized description of the label text. Some IDs may be available in Google Knowledge Graph Search API.

    Declaration

    Swift

    var entityID: String? { get }
  • Unavailable.