PoseLandmarkerResult class

Represents the pose landmarks deection results generated by PoseLandmarker . Each vector element represents a single pose detected in the image.

Signature:

  export 
  
 declare 
  
 class 
  
 PoseLandmarkerResult 
  
 

Constructors

Constructor Modifiers Description
Constructs a new instance of the PoseLandmarkerResult class

Properties

Property Modifiers Type Description
NormalizedLandmark [][] Pose landmarks of detected poses.
MPMask [] | undefined Segmentation mask for the detected pose.
Landmark [][] Pose landmarks in world coordinates of detected poses.

Methods

Method Modifiers Description
Frees the resources held by the segmentation masks.

PoseLandmarkerResult.(constructor)

Constructs a new instance of the PoseLandmarkerResult class

Signature:

  constructor 
 ( 
  
 landmarks 
 : 
  
 NormalizedLandmark 
 [][], 
  
  
 worldLandmarks 
 : 
  
 Landmark 
 [][], 
  
  
 segmentationMasks? 
 : 
  
 MPMask 
 [] 
  
 | 
  
 undefined 
 ); 
 

Parameters

Parameter Type Description
landmarks
NormalizedLandmark [][]
worldLandmarks
Landmark [][]
segmentationMasks
MPMask [] | undefined

PoseLandmarkerResult.landmarks

Pose landmarks of detected poses.

Signature:

  readonly 
  
 landmarks 
 : 
  
 NormalizedLandmark 
 [][]; 
 

PoseLandmarkerResult.segmentationMasks

Segmentation mask for the detected pose.

Signature:

  readonly 
  
 segmentationMasks? 
 : 
  
 MPMask 
 [] 
  
 | 
  
 undefined 
 ; 
 

PoseLandmarkerResult.worldLandmarks

Pose landmarks in world coordinates of detected poses.

Signature:

  readonly 
  
 worldLandmarks 
 : 
  
 Landmark 
 [][]; 
 

PoseLandmarkerResult.close()

Frees the resources held by the segmentation masks.

Signature:

  close 
 () 
 : 
  
 void 
 ; 
 

Returns:

void

Design a Mobile Site
View Site in Mobile | Classic
Share by: