Updated empty spaces

This commit is contained in:
Prianka Liz Kariat 2022-12-22 00:59:22 +05:30
parent 2943d1668e
commit 20f2e136c5

View File

@ -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);
}