Add missing export declarations to DrawingUtils

Fixes https://github.com/google/mediapipe/issues/4980

PiperOrigin-RevId: 585705106
This commit is contained in:
Sebastian Schmidt 2023-11-27 11:12:24 -08:00 committed by Copybara-Service
parent e7edd97eff
commit 8d57a9e2e8

View File

@ -391,6 +391,7 @@ export class DrawingUtils {
drawCategoryMask( drawCategoryMask(
mask: MPMask, categoryToColorMap: RGBAColor[], mask: MPMask, categoryToColorMap: RGBAColor[],
background?: RGBAColor|ImageSource): void; background?: RGBAColor|ImageSource): void;
/** @export */
drawCategoryMask( drawCategoryMask(
mask: MPMask, categoryToColorMap: CategoryToColorMap, mask: MPMask, categoryToColorMap: CategoryToColorMap,
background: RGBAColor|ImageSource = [0, 0, 0, 255]): void { background: RGBAColor|ImageSource = [0, 0, 0, 255]): void {
@ -480,6 +481,7 @@ export class DrawingUtils {
* frame, you can reduce the cost of re-uploading these images by passing a * frame, you can reduce the cost of re-uploading these images by passing a
* `HTMLCanvasElement` instead. * `HTMLCanvasElement` instead.
* *
* @export
* @param mask A confidence mask that was returned from a segmentation task. * @param mask A confidence mask that was returned from a segmentation task.
* @param defaultTexture An image or a four-channel color that will be used * @param defaultTexture An image or a four-channel color that will be used
* when confidence values are low. * when confidence values are low.