MLKitImageLabelingCommon Framework Reference

MLKImageLabel


@interface MLKImageLabel : 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.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull text;
  • The index of the label.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) float confidence;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;