From bfddb32358463eef70e88c7d292ddcaae6c0d82c Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Mon, 27 Feb 2023 16:44:39 -0800 Subject: [PATCH] remove usage of var for ImageSegmenter.java PiperOrigin-RevId: 512767947 --- .../tasks/vision/imagesegmenter/ImageSegmenter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java b/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java index 2ef1b57d8..f4faf4110 100644 --- a/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java +++ b/mediapipe/tasks/java/com/google/mediapipe/tasks/vision/imagesegmenter/ImageSegmenter.java @@ -301,7 +301,8 @@ public final class ImageSegmenter extends BaseVisionTaskApi { + " ResultListener to process ImageSegmentationResult."); } validateImageProcessingOptions(imageProcessingOptions); - var unused = processImageData(image, imageProcessingOptions); + ImageSegmenterResult unused = + (ImageSegmenterResult) processImageData(image, imageProcessingOptions); } /** @@ -415,7 +416,8 @@ public final class ImageSegmenter extends BaseVisionTaskApi { + " ResultListener to process ImageSegmentationResult."); } validateImageProcessingOptions(imageProcessingOptions); - var unused = processVideoData(image, imageProcessingOptions, timestampMs); + ImageSegmenterResult unused = + (ImageSegmenterResult) processVideoData(image, imageProcessingOptions, timestampMs); } /**