Skip to content

Commit

Permalink
Add export declarations to PoseLandmakerResult
Browse files Browse the repository at this point in the history
Fixes #5020

PiperOrigin-RevId: 601900536
  • Loading branch information
schmidt-sebastian authored and copybara-github committed Jan 27, 2024
1 parent 0c9f9a0 commit b004a3e
Showing 1 changed file with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,27 @@ export {type Category, type Landmark, type NormalizedLandmark};
* Each vector element represents a single pose detected in the image.
*/
export class PoseLandmarkerResult {
constructor(/** Pose landmarks of detected poses. */
readonly landmarks: NormalizedLandmark[][],
/** Pose landmarks in world coordinates of detected poses. */
readonly worldLandmarks: Landmark[][],
/** Segmentation mask for the detected pose. */
readonly segmentationMasks?: MPMask[]) {}
constructor(
/**
* Pose landmarks of detected poses.
* @export
*/
readonly landmarks: NormalizedLandmark[][],
/**
* Pose landmarks in world coordinates of detected poses.
* @export
*/
readonly worldLandmarks: Landmark[][],
/**
* Segmentation mask for the detected pose.
* @export
*/
readonly segmentationMasks?: MPMask[]) {}

/** Frees the resources held by the segmentation masks. */
/**
* Frees the resources held by the segmentation masks.
* @export
*/
close(): void {
this.segmentationMasks?.forEach(m => {
m.close();
Expand Down

0 comments on commit b004a3e

Please sign in to comment.