From 4873141d66225f4df0b2e7a62d2170181483fe7e Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Thu, 25 May 2023 19:01:58 +0530 Subject: [PATCH] Updated parameter name --- .../containers/utils/sources/MPPCategory+Helpers.h | 2 +- .../containers/utils/sources/MPPCategory+Helpers.mm | 2 +- .../utils/sources/MPPGestureRecognizerResult+Helpers.mm | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h index 8f5a84bc0..9ad958479 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.h @@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN * results. */ + (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto - andIndex:(NSInteger)index; + index:(NSInteger)index; @end diff --git a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm index f5605e56e..84d45eb3f 100644 --- a/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm +++ b/mediapipe/tasks/ios/components/containers/utils/sources/MPPCategory+Helpers.mm @@ -22,7 +22,7 @@ using ClassificationProto = ::mediapipe::Classification; @implementation MPPCategory (Helpers) + (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto - andIndex:(NSInteger)index { + index:(NSInteger)index { NSString *categoryName; NSString *displayName; diff --git a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm index 4dd1482a3..a775a961e 100644 --- a/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm +++ b/mediapipe/tasks/ios/vision/gesture_recognizer/utils/sources/MPPGestureRecognizerResult+Helpers.mm @@ -55,7 +55,7 @@ static const NSInteger kDefaultGestureIndex = -1; arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()]; for (const auto &classificationProto : classificationListProto.classification()) { MPPCategory *category = [MPPCategory categoryWithProto:classificationProto - andIndex:kDefaultGestureIndex]; + index:kDefaultGestureIndex]; [gestures addObject:category]; } [multiHandGestures addObject:gestures]; @@ -137,8 +137,8 @@ static const NSInteger kDefaultGestureIndex = -1; .Get>() handednessroto:handednessPacket .Get>() - handLandmarksPacket:handLandmarksPacket - .Get>() + handLandmarksPacket:handLandmarksPacket.Get< + std::vector>() worldLandmarksPacket:worldLandmarksPacket .Get>() timestampInMilliSeconds:timestampInMilliseconds];