Updated constant names in MPPHandLandmarkConnections

This commit is contained in:
Prianka Liz Kariat 2023-06-09 17:30:23 +05:30
parent f63c00b3c6
commit f528fa5de2
2 changed files with 13 additions and 13 deletions

View File

@ -262,27 +262,27 @@ static NSString *const kTaskName = @"handLandmarker";
} }
+ (NSArray<MPPConnection *> *)handPalmConnections { + (NSArray<MPPConnection *> *)handPalmConnections {
return kHandPalmConnections; return MPPHandPalmConnections;
} }
+ (NSArray<MPPConnection *> *)handIndexFingerConnections { + (NSArray<MPPConnection *> *)handIndexFingerConnections {
return kHandIndexFingerConnections; return MPPHandIndexFingerConnections;
} }
+ (NSArray<MPPConnection *> *)handMiddleFingerConnections { + (NSArray<MPPConnection *> *)handMiddleFingerConnections {
return kHandMiddleFingerConnections; return MPPHandMiddleFingerConnections;
} }
+ (NSArray<MPPConnection *> *)handRingFingerConnections { + (NSArray<MPPConnection *> *)handRingFingerConnections {
return kHandRingFingerConnections; return MPPHandRingFingerConnections;
} }
+ (NSArray<MPPConnection *> *)handPinkyConnections { + (NSArray<MPPConnection *> *)handPinkyConnections {
return kHandPinkyConnections; return MPPHandPinkyConnections;
} }
+ (NSArray<MPPConnection *> *)handConnections { + (NSArray<MPPConnection *> *)handConnections {
return kHandConnections; return MPPHandConnections;
} }
@end @end

View File

@ -17,38 +17,38 @@
NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_BEGIN
NSArray<MPPConnection *> *const kHandPalmConnections = @[ NSArray<MPPConnection *> *const MPPHandPalmConnections = @[
[[MPPConnection alloc] initWithStart:0 end:1], [[MPPConnection alloc] initWithStart:0 end:5], [[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:9 end:13], [[MPPConnection alloc] initWithStart:13 end:17],
[[MPPConnection alloc] initWithStart:5 end:9], [[MPPConnection alloc] initWithStart:0 end:17] [[MPPConnection alloc] initWithStart:5 end:9], [[MPPConnection alloc] initWithStart:0 end:17]
]; ];
NSArray<MPPConnection *> *const kHandThumbConnections = @[ NSArray<MPPConnection *> *const MPPHandThumbConnections = @[
[[MPPConnection alloc] initWithStart:1 end:2], [[MPPConnection alloc] initWithStart:2 end:3], [[MPPConnection alloc] initWithStart:1 end:2], [[MPPConnection alloc] initWithStart:2 end:3],
[[MPPConnection alloc] initWithStart:3 end:4] [[MPPConnection alloc] initWithStart:3 end:4]
]; ];
NSArray<MPPConnection *> *const kHandIndexFingerConnections = @[ NSArray<MPPConnection *> *const MPPHandIndexFingerConnections = @[
[[MPPConnection alloc] initWithStart:5 end:6], [[MPPConnection alloc] initWithStart:6 end:7], [[MPPConnection alloc] initWithStart:5 end:6], [[MPPConnection alloc] initWithStart:6 end:7],
[[MPPConnection alloc] initWithStart:7 end:8] [[MPPConnection alloc] initWithStart:7 end:8]
]; ];
NSArray<MPPConnection *> *const kHandMiddleFingerConnections = @[ NSArray<MPPConnection *> *const MPPHandMiddleFingerConnections = @[
[[MPPConnection alloc] initWithStart:9 end:10], [[MPPConnection alloc] initWithStart:10 end:11], [[MPPConnection alloc] initWithStart:9 end:10], [[MPPConnection alloc] initWithStart:10 end:11],
[[MPPConnection alloc] initWithStart:11 end:12] [[MPPConnection alloc] initWithStart:11 end:12]
]; ];
NSArray<MPPConnection *> *const kHandRingFingerConnections = @[ NSArray<MPPConnection *> *const MPPHandRingFingerConnections = @[
[[MPPConnection alloc] initWithStart:13 end:14], [[MPPConnection alloc] initWithStart:14 end:15], [[MPPConnection alloc] initWithStart:13 end:14], [[MPPConnection alloc] initWithStart:14 end:15],
[[MPPConnection alloc] initWithStart:15 end:16] [[MPPConnection alloc] initWithStart:15 end:16]
]; ];
NSArray<MPPConnection *> *const kHandPinkyConnections = @[ NSArray<MPPConnection *> *const MPPHandPinkyConnections = @[
[[MPPConnection alloc] initWithStart:16 end:17], [[MPPConnection alloc] initWithStart:17 end:18], [[MPPConnection alloc] initWithStart:16 end:17], [[MPPConnection alloc] initWithStart:17 end:18],
[[MPPConnection alloc] initWithStart:18 end:19] [[MPPConnection alloc] initWithStart:18 end:19]
]; ];
NSArray<MPPConnection *> *const kHandConnections = [[[[[[NSArray NSArray<MPPConnection *> *const MPPHandConnections = [[[[[[NSArray
arrayWithArray:kHandPalmConnections] arrayByAddingObjectsFromArray:kHandThumbConnections] arrayWithArray:kHandPalmConnections] arrayByAddingObjectsFromArray:kHandThumbConnections]
arrayByAddingObjectsFromArray:kHandIndexFingerConnections] arrayByAddingObjectsFromArray:kHandIndexFingerConnections]
arrayByAddingObjectsFromArray:kHandMiddleFingerConnections] arrayByAddingObjectsFromArray:kHandMiddleFingerConnections]