Updated interface of iOS image segmenter

This commit is contained in:
Prianka Liz Kariat 2023-09-19 19:59:33 +05:30
parent 6e80941215
commit 08a5d55ac1
2 changed files with 2 additions and 2 deletions

View File

@ -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:));

View File

@ -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