PoseLandmarkerResult class {#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.
worldLandmarks Landmark[][] Pose landmarks in world coordinates of detected poses.
segmentationMasks MPMask[] | undefined Segmentation mask for the detected pose.

Methods

Method Modifiers Description
close() Frees the resources held by the segmentation masks.

PoseLandmarkerResult.(constructor) {#poselandmarkerresultconstructor}

Constructs a new instance of the PoseLandmarkerResult class.

Signature:

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

Parameters

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

PoseLandmarkerResult.landmarks {#poselandmarkerresultlandmarks}

Pose landmarks of detected poses.

Signature:

readonly landmarks: NormalizedLandmark[][];

PoseLandmarkerResult.worldLandmarks {#poselandmarkerresultworldlandmarks}

Pose landmarks in world coordinates of detected poses.

Signature:

readonly worldLandmarks: Landmark[][];

PoseLandmarkerResult.segmentationMasks {#poselandmarkerresultsegmentationmasks}

Segmentation mask for the detected pose.

Signature:

readonly segmentationMasks?: MPMask[] | undefined;

PoseLandmarkerResult.close() {#poselandmarkerresultclose}

Frees the resources held by the segmentation masks.

Signature:

close(): void;

Returns:

void