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
(constructor)(landmarks, worldLandmarks, segmentationMasks) Constructs a new instance of the PoseLandmarkerResult class

Properties

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

Methods

Method Modifiers Description
close() 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