FIRVisionLabel


@interface FIRVisionLabel : 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

    Objective-C

    @property (readonly, nonatomic) CGRect frame;
  • Confidence for the label in range [0, 1].

    Declaration

    Objective-C

    @property (readonly, nonatomic) float confidence;
  • Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API]. (https://developers.google.com/knowledge-graph/).

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull entityID;
  • 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

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull label;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;