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.
*/
+ (MPPCategory *)categoryWithProto:(const ::mediapipe::Classification &)classificationProto
andIndex:(NSInteger)index;
index:(NSInteger)index;
@end

View File

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

View File

@ -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<std::vector<ClassificationListProto>>()
handednessroto:handednessPacket
.Get<std::vector<ClassificationListProto>>()
handLandmarksPacket:handLandmarksPacket
.Get<std::vector<NormalizedLandmarkListProto>>()
handLandmarksPacket:handLandmarksPacket.Get<
std::vector<NormalizedLandmarkListProto>>()
worldLandmarksPacket:worldLandmarksPacket
.Get<std::vector<LandmarkListProto>>()
timestampInMilliSeconds:timestampInMilliseconds];