MPPFaceLandmarkerResult
@interface MPPFaceLandmarkerResult : MPPTaskResultRepresents 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
FaceLandmarkerResultwith the given array of landmarks, blendshapes, facialTransformationMatrixes and timestamp (in milliseconds).Declaration
Objective-C
- (nonnull instancetype) initWithFaceLandmarks: (nonnull NSArray<NSArray<MPPNormalizedLandmark *> *> *) faceLandmarks faceBlendshapes: (nonnull NSArray<MPPClassifications *> *)faceBlendshapes facialTransformationMatrixes: (nonnull NSArray<MPPTransformMatrix *> *)facialTransformationMatrixes timestampInMilliseconds:(NSInteger)timestampInMilliseconds;Parameters
faceLandmarksAn array of
NormalizedLandmarkobjects.faceBlendshapesAn array of
Classificationsobjects.facialTransformationMatrixesAn array of flattended matrices.
timestampInMillisecondsThe timestamp (in milliseconds) for this result.
Return Value
An instance of
FaceLandmarkerResultinitialized with the given array of detections and timestamp (in milliseconds). -
Undocumented
Declaration
Objective-C
- (instancetype)initWithTimestampInMilliseconds:(NSInteger)timestampInMilliseconds NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;