Fixes iOS hand landmarker connections
PiperOrigin-RevId: 565442497
This commit is contained in:
parent
124a4de08d
commit
85b19383b9
|
@ -33,6 +33,8 @@ typedef NS_ENUM(NSUInteger, MPPHandLandmark) {
|
||||||
|
|
||||||
MPPHandLandmarkThumbIP,
|
MPPHandLandmarkThumbIP,
|
||||||
|
|
||||||
|
MPPHandLandmarkThumbTIP,
|
||||||
|
|
||||||
MPPHandLandmarkIndexFingerMCP,
|
MPPHandLandmarkIndexFingerMCP,
|
||||||
|
|
||||||
MPPHandLandmarkIndexFingerPIP,
|
MPPHandLandmarkIndexFingerPIP,
|
||||||
|
@ -78,6 +80,9 @@ NS_SWIFT_NAME(HandLandmarker)
|
||||||
/** The array of connections between the landmarks in the palm. */
|
/** The array of connections between the landmarks in the palm. */
|
||||||
@property(class, nonatomic, readonly) NSArray<MPPConnection *> *handPalmConnections;
|
@property(class, nonatomic, readonly) NSArray<MPPConnection *> *handPalmConnections;
|
||||||
|
|
||||||
|
/** The array of connections between the landmarks in the thumb. */
|
||||||
|
@property(class, nonatomic, readonly) NSArray<MPPConnection *> *handThumbConnections;
|
||||||
|
|
||||||
/** The array of connections between the landmarks in the index finger. */
|
/** The array of connections between the landmarks in the index finger. */
|
||||||
@property(class, nonatomic, readonly) NSArray<MPPConnection *> *handIndexFingerConnections;
|
@property(class, nonatomic, readonly) NSArray<MPPConnection *> *handIndexFingerConnections;
|
||||||
|
|
||||||
|
|
|
@ -169,6 +169,10 @@ static NSString *const kTaskName = @"handLandmarker";
|
||||||
return MPPHandPalmConnections;
|
return MPPHandPalmConnections;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
+ (NSArray<MPPConnection *> *)handThumbConnections {
|
||||||
|
return MPPHandThumbConnections;
|
||||||
|
}
|
||||||
|
|
||||||
+ (NSArray<MPPConnection *> *)handIndexFingerConnections {
|
+ (NSArray<MPPConnection *> *)handIndexFingerConnections {
|
||||||
return MPPHandIndexFingerConnections;
|
return MPPHandIndexFingerConnections;
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,8 +44,8 @@ NSArray<MPPConnection *> *const MPPHandRingFingerConnections = @[
|
||||||
];
|
];
|
||||||
|
|
||||||
NSArray<MPPConnection *> *const MPPHandPinkyConnections = @[
|
NSArray<MPPConnection *> *const MPPHandPinkyConnections = @[
|
||||||
[[MPPConnection alloc] initWithStart:16 end:17], [[MPPConnection alloc] initWithStart:17 end:18],
|
[[MPPConnection alloc] initWithStart:17 end:18], [[MPPConnection alloc] initWithStart:18 end:19],
|
||||||
[[MPPConnection alloc] initWithStart:18 end:19]
|
[[MPPConnection alloc] initWithStart:19 end:20]
|
||||||
];
|
];
|
||||||
|
|
||||||
NSArray<MPPConnection *> *const MPPHandConnections = [[[[[[NSArray
|
NSArray<MPPConnection *> *const MPPHandConnections = [[[[[[NSArray
|
||||||
|
|
Loading…
Reference in New Issue
Block a user