From 08a5d55ac1785134d46f7d6a736a46f840ae086b Mon Sep 17 00:00:00 2001 From: Prianka Liz Kariat Date: Tue, 19 Sep 2023 19:59:33 +0530 Subject: [PATCH] Updated interface of iOS image segmenter --- .../ios/vision/image_segmenter/sources/MPPImageSegmenter.h | 2 +- .../ios/vision/image_segmenter/sources/MPPImageSegmenter.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.h b/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.h index f4f2e96cc..f75e7575e 100644 --- a/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.h +++ b/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.h @@ -203,7 +203,7 @@ NS_SWIFT_NAME(ImageSegmenter) * * @return `YES` if the image was sent to the task successfully, otherwise `NO`. */ -- (BOOL)segmentAsyncInImage:(MPPImage *)image +- (BOOL)segmentAsyncImage:(MPPImage *)image timestampInMilliseconds:(NSInteger)timestampInMilliseconds error:(NSError **)error NS_SWIFT_NAME(segmentAsync(image:timestampInMilliseconds:)); diff --git a/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.mm b/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.mm index fa46b3387..dfa8845f2 100644 --- a/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.mm +++ b/mediapipe/tasks/ios/vision/image_segmenter/sources/MPPImageSegmenter.mm @@ -187,7 +187,7 @@ using ::mediapipe::tasks::core::PacketsCallback; shouldCopyMaskPacketData:NO]; completionHandler(result, error); } -- (BOOL)segmentAsyncInImage:(MPPImage *)image +- (BOOL)segmentAsyncImage:(MPPImage *)image timestampInMilliseconds:(NSInteger)timestampInMilliseconds error:(NSError **)error { return [_visionTaskRunner processLiveStreamImage:image