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