From e9bb84950319da52b86e9f61ac6b3f03c1b71622 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Thu, 20 Apr 2023 15:12:14 -0700 Subject: [PATCH] Fix Typo PiperOrigin-RevId: 525861968 --- .../interactive_segmenter/interactive_segmenter.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts index 16841bd7f..df00b2cee 100644 --- a/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts +++ b/mediapipe/tasks/web/vision/interactive_segmenter/interactive_segmenter.ts @@ -55,7 +55,7 @@ const DEFAULT_OUTPUT_CONFIDENCE_MASKS = true; * asynchronous processing is needed, all data needs to be copied before the * callback returns. */ -export type InteractiveSegmenterCallack = +export type InteractiveSegmenterCallback = (result: InteractiveSegmenterResult) => void; /** @@ -202,7 +202,7 @@ export class InteractiveSegmenter extends VisionTaskRunner { */ segment( image: ImageSource, roi: RegionOfInterest, - callback: InteractiveSegmenterCallack): void; + callback: InteractiveSegmenterCallback): void; /** * Performs interactive segmentation on the provided single image and invokes * the callback with the response. The `roi` parameter is used to represent a @@ -231,12 +231,12 @@ export class InteractiveSegmenter extends VisionTaskRunner { segment( image: ImageSource, roi: RegionOfInterest, imageProcessingOptions: ImageProcessingOptions, - callback: InteractiveSegmenterCallack): void; + callback: InteractiveSegmenterCallback): void; segment( image: ImageSource, roi: RegionOfInterest, imageProcessingOptionsOrCallback: ImageProcessingOptions| - InteractiveSegmenterCallack, - callback?: InteractiveSegmenterCallack): void { + InteractiveSegmenterCallback, + callback?: InteractiveSegmenterCallback): void { const imageProcessingOptions = typeof imageProcessingOptionsOrCallback !== 'function' ? imageProcessingOptionsOrCallback :