MediaPipeTasksVision Framework Reference

MPPFaceLandmarkerResult

  @interface 
 MPPFaceLandmarkerResult 
 : 
  MPPTaskResult 
 
 

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).

    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

    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).

  • 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 
     ; 
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: