Updated MPPHandLandmarker.h to return the hand connections via class mathods
This commit is contained in:
parent
e2f899e151
commit
9356dfcd46
|
@ -29,24 +29,6 @@ NS_ASSUME_NONNULL_BEGIN
|
||||||
NS_SWIFT_NAME(HandLandmarker)
|
NS_SWIFT_NAME(HandLandmarker)
|
||||||
@interface MPPHandLandmarker : NSObject
|
@interface MPPHandLandmarker : NSObject
|
||||||
|
|
||||||
/** The connections between the landmarks in the palm. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handPalmConnections;
|
|
||||||
|
|
||||||
/** The connections between the landmarks in the index finger. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handIndexFingerConnections;
|
|
||||||
|
|
||||||
/** The connections between the landmarks in the middle finger. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handMiddleFingerConnections;
|
|
||||||
|
|
||||||
/** The connections between the landmarks in the ring finger. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handRingFingerConnections;
|
|
||||||
|
|
||||||
/** The connections between the landmarks in the pinky. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handPinkyConnections;
|
|
||||||
|
|
||||||
/** The connections between all the landmarks in the hand. */
|
|
||||||
@property(nonatomic, readonly) NSArray<MPPConnection *> *handConnections;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a new instance of `MPPHandLandmarker` from an absolute path to a model asset bundle
|
* Creates a new instance of `MPPHandLandmarker` from an absolute path to a model asset bundle
|
||||||
* stored locally on the device and the default `MPPHandLandmarkerOptions`.
|
* stored locally on the device and the default `MPPHandLandmarkerOptions`.
|
||||||
|
@ -174,6 +156,48 @@ NS_SWIFT_NAME(HandLandmarker)
|
||||||
|
|
||||||
- (instancetype)init NS_UNAVAILABLE;
|
- (instancetype)init NS_UNAVAILABLE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between the landmarks in the palm.
|
||||||
|
*
|
||||||
|
* @return An array of connections between the landmarks in the palm.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handPalmConnections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between the landmarks in the index finger.
|
||||||
|
*
|
||||||
|
* @return An array of connections between the landmarks in the index finger.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handIndexFingerConnections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between the landmarks in the middle finger.
|
||||||
|
*
|
||||||
|
* @return An array of connections between the landmarks in the middle finger.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handMiddleFingerConnections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between the landmarks in the ring finger.
|
||||||
|
*
|
||||||
|
* @return An array of connections between the landmarks in the ring finger.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handRingFingerConnections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between the landmarks in the pinky.
|
||||||
|
*
|
||||||
|
* @return An array of connections between the landmarks in the pinky.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handPinkyConnections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the connections between all the landmarks in the hand.
|
||||||
|
*
|
||||||
|
* @return An array of connections between all the landmarks in the hand.
|
||||||
|
*/
|
||||||
|
+ (NSArray<MPPConnection *> *)handConnections;
|
||||||
|
|
||||||
+ (instancetype)new NS_UNAVAILABLE;
|
+ (instancetype)new NS_UNAVAILABLE;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user