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 

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