MediaPipeTasksVision Framework Reference
MPPFaceLandmarkerResult
Represents the detection results generated by FaceLandmarker
.
-
Detected face landmarks in normalized image coordinates.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<NSArray<MPPNormalizedLandmark *> *> *_Nonnull faceLandmarks;
-
Face blendshapes results. Defaults to an empty array if not enabled.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<MPPClassifications *> *_Nonnull faceBlendshapes;
-
Facial transformation 4x4 matrices. Defaults to an empty array if not enabled.
Declaration
Objective-C
@property (nonatomic, readonly) NSArray<MPPTransformMatrix *> *_Nonnull facialTransformationMatrixes;
-
Initializes a new FaceLandmarkerResult
with the given array of landmarks, blendshapes,
facialTransformationMatrixes and timestamp (in milliseconds).
Parameters
faceLandmarks
|
An array of NormalizedLandmark objects.
|
faceBlendshapes
|
An array of Classifications objects.
|
facialTransformationMatrixes
|
An array of flattended matrices.
|
timestampInMilliseconds
|
The timestamp (in milliseconds) for this result.
|
Return Value
An instance of FaceLandmarkerResult
initialized with the given array of detections and
timestamp (in milliseconds).
-
Declaration
Objective-C
- (instancetype)initWithTimestampInMilliseconds:(NSInteger)timestampInMilliseconds NS_UNAVAILABLE;
-
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;
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\nMPPFaceLandmarkerResult\n=======================\n\n\n @interface MPPFaceLandmarkerResult : ../Classes/MPPTaskResult.html\n\nRepresents the detection results generated by `FaceLandmarker`.\n- `\n ``\n ``\n `\n\n ### [faceLandmarks](#/c:objc(cs)MPPFaceLandmarkerResult(py)faceLandmarks)\n\n `\n ` \n Detected face landmarks in normalized image coordinates. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003cNSArray\u003c../Classes/MPPNormalizedLandmark.html *\u003e *\u003e *_Nonnull faceLandmarks;\n\n- `\n ``\n ``\n `\n\n ### [faceBlendshapes](#/c:objc(cs)MPPFaceLandmarkerResult(py)faceBlendshapes)\n\n `\n ` \n Face blendshapes results. Defaults to an empty array if not enabled. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003c../Classes/MPPClassifications.html *\u003e *_Nonnull faceBlendshapes;\n\n- `\n ``\n ``\n `\n\n ### [facialTransformationMatrixes](#/c:objc(cs)MPPFaceLandmarkerResult(py)facialTransformationMatrixes)\n\n `\n ` \n Facial transformation 4x4 matrices. Defaults to an empty array if not enabled. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly) NSArray\u003c../Classes/MPPTransformMatrix.html *\u003e *_Nonnull facialTransformationMatrixes;\n\n- `\n ``\n ``\n `\n\n ### [-initWithFaceLandmarks:faceBlendshapes:facialTransformationMatrixes:timestampInMilliseconds:](#/c:objc(cs)MPPFaceLandmarkerResult(im)initWithFaceLandmarks:faceBlendshapes:facialTransformationMatrixes:timestampInMilliseconds:)\n\n `\n ` \n Initializes a new `FaceLandmarkerResult` with the given array of landmarks, blendshapes,\n facialTransformationMatrixes and timestamp (in milliseconds). \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)\n initWithFaceLandmarks:\n (nonnull NSArray\u003cNSArray\u003c../Classes/MPPNormalizedLandmark.html *\u003e *\u003e *)\n ../Classes/MPPFaceLandmarkerResult.html#/c:objc(cs)MPPFaceLandmarkerResult(py)faceLandmarks\n ../Classes/MPPFaceLandmarkerResult.html#/c:objc(cs)MPPFaceLandmarkerResult(py)faceBlendshapes:\n (nonnull NSArray\u003c../Classes/MPPClassifications.html *\u003e *)../Classes/MPPFaceLandmarkerResult.html#/c:objc(cs)MPPFaceLandmarkerResult(py)faceBlendshapes\n ../Classes/MPPFaceLandmarkerResult.html#/c:objc(cs)MPPFaceLandmarkerResult(py)facialTransformationMatrixes:\n (nonnull NSArray\u003c../Classes/MPPTransformMatrix.html *\u003e *)../Classes/MPPFaceLandmarkerResult.html#/c:objc(cs)MPPFaceLandmarkerResult(py)facialTransformationMatrixes\n timestampInMilliseconds:(NSInteger)timestampInMilliseconds;\n\n #### Parameters\n\n |--------------------------------------|--------------------------------------------------|\n | ` `*faceLandmarks*` ` | An array of `NormalizedLandmark` objects. |\n | ` `*faceBlendshapes*` ` | An array of `Classifications` objects. |\n | ` `*facialTransformationMatrixes*` ` | An array of flattended matrices. |\n | ` `*timestampInMilliseconds*` ` | The timestamp (in milliseconds) for this result. |\n\n #### Return Value\n\n An instance of `FaceLandmarkerResult` initialized with the given array of detections and\n timestamp (in milliseconds).\n- `\n ``\n ``\n `\n\n ### [-initWithTimestampInMilliseconds:](#/c:objc(cs)MPPFaceLandmarkerResult(im)initWithTimestampInMilliseconds:)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)initWithTimestampInMilliseconds:(NSInteger)timestampInMilliseconds NS_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)MPPFaceLandmarkerResult(im)init)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Objective-C \n\n - (instancetype)init NS_UNAVAILABLE;\n\n- `\n ``\n ``\n `\n\n ### [+new](#/c:objc(cs)MPPFaceLandmarkerResult(cm)new)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Objective-C \n\n + (instancetype)new NS_UNAVAILABLE;"]]