Updated interface of iOS image segmenter
This commit is contained in:
parent
6e80941215
commit
08a5d55ac1
|
@ -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:));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user