MediaPipeTasksVision Framework Reference
MPPHandLandmarkerResult
Represents the hand landmarker results generated by HandLandmarker
.
-
Hand landmarks of detected hands.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSArray<MPPNormalizedLandmark *> *> *_Nonnull landmarks;
-
Hand landmarks in world coordinates of detected hands.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSArray<MPPLandmark *> *> *_Nonnull worldLandmarks;
-
Handedness of detected hands.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSArray<MPPCategory *> *> *_Nonnull handedness;
-
Initializes a new HandLandmarkerResult
with the given landmarks, world landmarks, handedness
and timestamp (in milliseconds).
Declaration
Objective-C
- (nonnull instancetype)
initWithLandmarks:
(nonnull NSArray<NSArray<MPPNormalizedLandmark *> *> *)landmarks
worldLandmarks:
(nonnull NSArray<NSArray<MPPLandmark *> *> *)worldLandmarks
handedness:
(nonnull NSArray<NSArray<MPPCategory *> *> *)handedness
timestampInMilliseconds:(NSInteger)timestampInMilliseconds;
Parameters
landmarks
|
The hand landmarks of detected hands.
|
worldLandmarks
|
The hand landmarks in world coordinates of detected hands.
|
handedness
|
The handedness of detected hands.
|
timestampInMilliseconds
|
The timestamp for this result.
|
Return Value
An instance of HandLandmarkerResult
initialized with the given landmarks, world
landmarks, handedness and timestamp (in milliseconds).
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-08 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nMPPHandLandmarkerResult\n=======================\n\n\n @interface MPPHandLandmarkerResult : ../Classes/MPPTaskResult.html\n\nRepresents the hand landmarker results generated by `HandLandmarker`.\n- `\n ``\n ``\n `\n\n ### [landmarks](#/c:objc(cs)MPPHandLandmarkerResult(py)landmarks)\n\n `\n ` \n Hand landmarks of detected hands. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003cNSArray\u003c../Classes/MPPNormalizedLandmark.html *\u003e *\u003e *_Nonnull landmarks;\n\n- `\n ``\n ``\n `\n\n ### [worldLandmarks](#/c:objc(cs)MPPHandLandmarkerResult(py)worldLandmarks)\n\n `\n ` \n Hand landmarks in world coordinates of detected hands. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003cNSArray\u003c../Classes/MPPLandmark.html *\u003e *\u003e *_Nonnull worldLandmarks;\n\n- `\n ``\n ``\n `\n\n ### [handedness](#/c:objc(cs)MPPHandLandmarkerResult(py)handedness)\n\n `\n ` \n Handedness of detected hands. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003cNSArray\u003c../Classes/MPPCategory.html *\u003e *\u003e *_Nonnull handedness;\n\n- `\n ``\n ``\n `\n\n ### [-initWithLandmarks:worldLandmarks:handedness:timestampInMilliseconds:](#/c:objc(cs)MPPHandLandmarkerResult(im)initWithLandmarks:worldLandmarks:handedness:timestampInMilliseconds:)\n\n `\n ` \n Initializes a new `HandLandmarkerResult` with the given landmarks, world landmarks, handedness\n and timestamp (in milliseconds). \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)\n initWithLandmarks:\n (nonnull NSArray\u003cNSArray\u003c../Classes/MPPNormalizedLandmark.html *\u003e *\u003e *)landmarks\n worldLandmarks:\n (nonnull NSArray\u003cNSArray\u003c../Classes/MPPLandmark.html *\u003e *\u003e *)worldLandmarks\n handedness:\n (nonnull NSArray\u003cNSArray\u003c../Classes/MPPCategory.html *\u003e *\u003e *)handedness\n timestampInMilliseconds:(NSInteger)timestampInMilliseconds;\n\n #### Parameters\n\n |---------------------------------|------------------------------------------------------------|\n | ` `*landmarks*` ` | The hand landmarks of detected hands. |\n | ` `*worldLandmarks*` ` | The hand landmarks in world coordinates of detected hands. |\n | ` `*handedness*` ` | The handedness of detected hands. |\n | ` `*timestampInMilliseconds*` ` | The timestamp for this result. |\n\n #### Return Value\n\n An instance of `HandLandmarkerResult` initialized with the given landmarks, world\n landmarks, handedness and timestamp (in milliseconds)."]]