diff --git a/mediapipe/tasks/ios/components/processors/sources/MPPClassifierOptions.h b/mediapipe/tasks/ios/components/processors/sources/MPPClassifierOptions.h index d6b9a9582..0c22ed9de 100644 --- a/mediapipe/tasks/ios/components/processors/sources/MPPClassifierOptions.h +++ b/mediapipe/tasks/ios/components/processors/sources/MPPClassifierOptions.h @@ -22,22 +22,22 @@ NS_ASSUME_NONNULL_BEGIN NS_SWIFT_NAME(ClassifierOptions) @interface MPPClassifierOptions : NSObject -/** If set, all classes in this list will be filtered out from the results. */ -@property(nonatomic, copy) NSArray *labelDenyList; - -/** If set, all classes not in this list will be filtered out from the results. */ -@property(nonatomic, copy) NSArray *labelAllowList; - /** The locale to use for display names specified through the TFLite Model * Metadata, if any. Defaults to English. */ @property(nonatomic, copy) NSString *displayNamesLocale; +/** Limit to the number of classes that can be returned in results. */ +@property(nonatomic) NSInteger maxResults; + /** Results with score threshold greater than this value are returned. */ @property(nonatomic) float scoreThreshold; -/** Limit to the number of classes that can be returned in results. */ -@property(nonatomic) NSInteger maxResults; +/** If set, all classes not in this list will be filtered out from the results. */ +@property(nonatomic, copy) NSArray *labelAllowList; + +/** If set, all classes in this list will be filtered out from the results. */ +@property(nonatomic, copy) NSArray *labelDenyList; @end