Add missing export declarations to DrawingUtils
Fixes https://github.com/google/mediapipe/issues/4980 PiperOrigin-RevId: 585705106
This commit is contained in:
parent
e7edd97eff
commit
8d57a9e2e8
|
@ -391,6 +391,7 @@ export class DrawingUtils {
|
|||
drawCategoryMask(
|
||||
mask: MPMask, categoryToColorMap: RGBAColor[],
|
||||
background?: RGBAColor|ImageSource): void;
|
||||
/** @export */
|
||||
drawCategoryMask(
|
||||
mask: MPMask, categoryToColorMap: CategoryToColorMap,
|
||||
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
|
||||
* `HTMLCanvasElement` instead.
|
||||
*
|
||||
* @export
|
||||
* @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
|
||||
* when confidence values are low.
|
||||
|
|
Loading…
Reference in New Issue
Block a user