Updated empty spaces
This commit is contained in:
+4
@@ -20,12 +20,16 @@ using ClassifierOptionsProto = ::mediapipe::tasks::components::processors::proto
|
||||
}
|
||||
|
||||
@implementation MPPClassifierOptions (Helpers)
|
||||
|
||||
- (void)copyToProto:(ClassifierOptionsProto *)classifierOptionsProto {
|
||||
if (self.displayNamesLocale) {
|
||||
classifierOptionsProto->set_display_names_locale(self.displayNamesLocale.cppString);
|
||||
}
|
||||
|
||||
classifierOptionsProto->set_max_results((int)self.maxResults);
|
||||
|
||||
classifierOptionsProto->set_score_threshold(self.scoreThreshold);
|
||||
|
||||
for (NSString *category in self.labelAllowList) {
|
||||
classifierOptionsProto->add_category_allowlist(category.cppString);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user