FIRVisionCloudImageLabelerOptions.h 983 B

123456789101112131415161718192021222324252627282930
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /** Options for a cloud image labeler. */
  4. NS_SWIFT_NAME(VisionCloudImageLabelerOptions)
  5. @interface FIRVisionCloudImageLabelerOptions : 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. Up to 20
  10. * labels with the top confidence will be returned.
  11. */
  12. @property(nonatomic) float confidenceThreshold;
  13. /**
  14. * API key to use for Cloud Vision API. If `nil`, the default API key from FirebaseApp will be used.
  15. */
  16. @property(nonatomic, copy, nullable) NSString *APIKeyOverride;
  17. /**
  18. * Designated initializer that creates a new instance of cloud image labeler options with the
  19. * default values.
  20. */
  21. - (instancetype)init NS_DESIGNATED_INITIALIZER;
  22. @end
  23. NS_ASSUME_NONNULL_END