From c8b56439afe4bc72258367d88cc2b13cc8a0be8f Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Wed, 15 Mar 2023 01:36:09 -0700 Subject: [PATCH] Fix typo PiperOrigin-RevId: 516758040 --- mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts index 85c222a28..f8ff0dcca 100644 --- a/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts +++ b/mediapipe/tasks/web/vision/image_segmenter/image_segmenter.ts @@ -35,7 +35,7 @@ export {ImageSource}; // Used in the public API const IMAGE_STREAM = 'image_in'; const NORM_RECT_STREAM = 'norm_rect'; const GROUPED_SEGMENTATIONS_STREAM = 'segmented_masks'; -const IMAGEA_SEGMENTER_GRAPH = +const IMAGE_SEGMENTER_GRAPH = 'mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph'; // The OSS JS API does not support the builder pattern. @@ -255,7 +255,7 @@ export class ImageSegmenter extends VisionTaskRunner { ImageSegmenterGraphOptionsProto.ext, this.options); const segmenterNode = new CalculatorGraphConfig.Node(); - segmenterNode.setCalculator(IMAGEA_SEGMENTER_GRAPH); + segmenterNode.setCalculator(IMAGE_SEGMENTER_GRAPH); segmenterNode.addInputStream('IMAGE:' + IMAGE_STREAM); segmenterNode.addInputStream('NORM_RECT:' + NORM_RECT_STREAM); segmenterNode.addOutputStream(