FIRVisionOnDeviceImageLabelerOptions.h 857 B

12345678910111213141516171819202122232425
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /** Options for an on-device image labeler. */
  4. NS_SWIFT_NAME(VisionOnDeviceImageLabelerOptions)
  5. @interface FIRVisionOnDeviceImageLabelerOptions : NSObject
  6. /**
  7. * The confidence threshold for labels returned by the image labeler. Labels returned by the image
  8. * labeler will have a confidence level higher or equal to the given threshold. Values must be in
  9. * range [0, 1]. If unset or an invalid value is set, the default threshold of 0.5 is used. There is
  10. * no limit on the maximum number of labels returned by an on-device image labeler.
  11. */
  12. @property(nonatomic) float confidenceThreshold;
  13. /**
  14. * Designated initializer that creates a new instance of on-device image labeler options with the
  15. * default values.
  16. */
  17. - (instancetype)init NS_DESIGNATED_INITIALIZER;
  18. @end
  19. NS_ASSUME_NONNULL_END