Clearing proto before assigining new values in MPPClassifierOptions Helpers
This commit is contained in:
parent
e559613b9d
commit
e47256ae55
|
@ -22,6 +22,8 @@ using ClassifierOptionsProto = ::mediapipe::tasks::components::processors::proto
|
|||
@implementation MPPClassifierOptions (Helpers)
|
||||
|
||||
- (void)copyToProto:(ClassifierOptionsProto *)classifierOptionsProto {
|
||||
classifierOptionsProto->Clear();
|
||||
|
||||
if (self.displayNamesLocale) {
|
||||
classifierOptionsProto->set_display_names_locale(self.displayNamesLocale.cppString);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user