Updated property types in MPPGestureRecognizerResult
This commit is contained in:
parent
4f8520af10
commit
ae2901459d
|
@ -25,7 +25,7 @@ NS_SWIFT_NAME(GestureRecognizerResult)
|
||||||
@interface MPPGestureRecognizerResult : MPPTaskResult
|
@interface MPPGestureRecognizerResult : MPPTaskResult
|
||||||
|
|
||||||
/** Hand landmarks of detected hands. */
|
/** Hand landmarks of detected hands. */
|
||||||
@property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *landmarks;
|
@property(nonatomic, readonly) NSArray<NSArray<MPPNormalizedLandmark *> *> *landmarks;
|
||||||
|
|
||||||
/** Hand landmarks in world coordniates of detected hands. */
|
/** Hand landmarks in world coordniates of detected hands. */
|
||||||
@property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *worldLandmarks;
|
@property(nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *worldLandmarks;
|
||||||
|
@ -54,10 +54,10 @@ NS_SWIFT_NAME(GestureRecognizerResult)
|
||||||
* landmarks, handedness and gestures.
|
* landmarks, handedness and gestures.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
- (instancetype)initWithLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)landmarks
|
- (instancetype)initWithGestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
|
||||||
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
|
|
||||||
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
|
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
|
||||||
gestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
|
landmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
|
||||||
|
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
|
||||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds;
|
timestampInMilliseconds:(NSInteger)timestampInMilliseconds;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
|
|
||||||
@implementation MPPGestureRecognizerResult
|
@implementation MPPGestureRecognizerResult
|
||||||
|
|
||||||
- (instancetype)initWithLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)landmarks
|
- (instancetype)initWithGestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
|
||||||
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
|
|
||||||
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
|
handedness:(NSArray<NSArray<MPPCategory *> *> *)handedness
|
||||||
gestures:(NSArray<NSArray<MPPCategory *> *> *)gestures
|
landmarks:(NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
|
||||||
|
worldLandmarks:(NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
|
||||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds {
|
timestampInMilliseconds:(NSInteger)timestampInMilliseconds {
|
||||||
self = [super initWithTimestampInMilliseconds:timestampInMilliseconds];
|
self = [super initWithTimestampInMilliseconds:timestampInMilliseconds];
|
||||||
if (self) {
|
if (self) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user