Updated parameter name

This commit is contained in:
Prianka Liz Kariat 2023-05-25 19:01:58 +05:30
parent 5429991986
commit 4873141d66
3 changed files with 5 additions and 5 deletions

View File

@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
* results. * results.
*/ */
+ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto + (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto
andIndex:(NSInteger)index; index:(NSInteger)index;
@end @end

View File

@ -22,7 +22,7 @@ using ClassificationProto = ::mediapipe::Classification;
@implementation MPPCategory (Helpers) @implementation MPPCategory (Helpers)
+ (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto + (MPPCategory *)categoryWithProto:(const ClassificationProto &)classificationProto
andIndex:(NSInteger)index { index:(NSInteger)index {
NSString *categoryName; NSString *categoryName;
NSString *displayName; NSString *displayName;

View File

@ -55,7 +55,7 @@ static const NSInteger kDefaultGestureIndex = -1;
arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()]; arrayWithCapacity:(NSUInteger)classificationListProto.classification().size()];
for (const auto &classificationProto : classificationListProto.classification()) { for (const auto &classificationProto : classificationListProto.classification()) {
MPPCategory *category = [MPPCategory categoryWithProto:classificationProto MPPCategory *category = [MPPCategory categoryWithProto:classificationProto
andIndex:kDefaultGestureIndex]; index:kDefaultGestureIndex];
[gestures addObject:category]; [gestures addObject:category];
} }
[multiHandGestures addObject:gestures]; [multiHandGestures addObject:gestures];
@ -137,8 +137,8 @@ static const NSInteger kDefaultGestureIndex = -1;
.Get<std::vector<ClassificationListProto>>() .Get<std::vector<ClassificationListProto>>()
handednessroto:handednessPacket handednessroto:handednessPacket
.Get<std::vector<ClassificationListProto>>() .Get<std::vector<ClassificationListProto>>()
handLandmarksPacket:handLandmarksPacket handLandmarksPacket:handLandmarksPacket.Get<
.Get<std::vector<NormalizedLandmarkListProto>>() std::vector<NormalizedLandmarkListProto>>()
worldLandmarksPacket:worldLandmarksPacket worldLandmarksPacket:worldLandmarksPacket
.Get<std::vector<LandmarkListProto>>() .Get<std::vector<LandmarkListProto>>()
timestampInMilliSeconds:timestampInMilliseconds]; timestampInMilliSeconds:timestampInMilliseconds];