remove usage of var for ImageSegmenter.java

PiperOrigin-RevId: 512767947
This commit is contained in:
MediaPipe Team 2023-02-27 16:44:39 -08:00 committed by Copybara-Service
parent 2cbaf84f50
commit bfddb32358

View File

@ -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);
}
/**