From f528fa5de20a6eb8b43e7d2bd8d668ebf23b456f Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Fri, 9 Jun 2023 17:30:23 +0530 Subject: [PATCH] Updated constant names in MPPHandLandmarkConnections --- .../hand_landmarker/sources/MPPHandLandmarker.mm | 12 ++++++------ .../sources/MPPHandLandmarksConnections.h | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarker.mm b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarker.mm index 143b9bd23..46a6d1f33 100644 --- a/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarker.mm +++ b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarker.mm @@ -262,27 +262,27 @@ static NSString *const kTaskName = @"handLandmarker"; } + (NSArray *)handPalmConnections { - return kHandPalmConnections; + return MPPHandPalmConnections; } + (NSArray *)handIndexFingerConnections { - return kHandIndexFingerConnections; + return MPPHandIndexFingerConnections; } + (NSArray *)handMiddleFingerConnections { - return kHandMiddleFingerConnections; + return MPPHandMiddleFingerConnections; } + (NSArray *)handRingFingerConnections { - return kHandRingFingerConnections; + return MPPHandRingFingerConnections; } + (NSArray *)handPinkyConnections { - return kHandPinkyConnections; + return MPPHandPinkyConnections; } + (NSArray *)handConnections { - return kHandConnections; + return MPPHandConnections; } @end diff --git a/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarksConnections.h b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarksConnections.h index fe356fbee..7027c4fff 100644 --- a/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarksConnections.h +++ b/mediapipe/tasks/ios/vision/hand_landmarker/sources/MPPHandLandmarksConnections.h @@ -17,38 +17,38 @@ NS_ASSUME_NONNULL_BEGIN -NSArray *const kHandPalmConnections = @[ +NSArray *const MPPHandPalmConnections = @[ [[MPPConnection alloc] initWithStart:0 end:1], [[MPPConnection alloc] initWithStart:0 end:5], [[MPPConnection alloc] initWithStart:9 end:13], [[MPPConnection alloc] initWithStart:13 end:17], [[MPPConnection alloc] initWithStart:5 end:9], [[MPPConnection alloc] initWithStart:0 end:17] ]; -NSArray *const kHandThumbConnections = @[ +NSArray *const MPPHandThumbConnections = @[ [[MPPConnection alloc] initWithStart:1 end:2], [[MPPConnection alloc] initWithStart:2 end:3], [[MPPConnection alloc] initWithStart:3 end:4] ]; -NSArray *const kHandIndexFingerConnections = @[ +NSArray *const MPPHandIndexFingerConnections = @[ [[MPPConnection alloc] initWithStart:5 end:6], [[MPPConnection alloc] initWithStart:6 end:7], [[MPPConnection alloc] initWithStart:7 end:8] ]; -NSArray *const kHandMiddleFingerConnections = @[ +NSArray *const MPPHandMiddleFingerConnections = @[ [[MPPConnection alloc] initWithStart:9 end:10], [[MPPConnection alloc] initWithStart:10 end:11], [[MPPConnection alloc] initWithStart:11 end:12] ]; -NSArray *const kHandRingFingerConnections = @[ +NSArray *const MPPHandRingFingerConnections = @[ [[MPPConnection alloc] initWithStart:13 end:14], [[MPPConnection alloc] initWithStart:14 end:15], [[MPPConnection alloc] initWithStart:15 end:16] ]; -NSArray *const kHandPinkyConnections = @[ +NSArray *const MPPHandPinkyConnections = @[ [[MPPConnection alloc] initWithStart:16 end:17], [[MPPConnection alloc] initWithStart:17 end:18], [[MPPConnection alloc] initWithStart:18 end:19] ]; -NSArray *const kHandConnections = [[[[[[NSArray +NSArray *const MPPHandConnections = [[[[[[NSArray arrayWithArray:kHandPalmConnections] arrayByAddingObjectsFromArray:kHandThumbConnections] arrayByAddingObjectsFromArray:kHandIndexFingerConnections] arrayByAddingObjectsFromArray:kHandMiddleFingerConnections]