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`.
|
* @return `YES` if the image was sent to the task successfully, otherwise `NO`.
|
||||||
*/
|
*/
|
||||||
- (BOOL)segmentAsyncInImage:(MPPImage *)image
|
- (BOOL)segmentAsyncImage:(MPPImage *)image
|
||||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||||
error:(NSError **)error
|
error:(NSError **)error
|
||||||
NS_SWIFT_NAME(segmentAsync(image:timestampInMilliseconds:));
|
NS_SWIFT_NAME(segmentAsync(image:timestampInMilliseconds:));
|
||||||
|
|
|
@ -187,7 +187,7 @@ using ::mediapipe::tasks::core::PacketsCallback;
|
||||||
shouldCopyMaskPacketData:NO];
|
shouldCopyMaskPacketData:NO];
|
||||||
completionHandler(result, error);
|
completionHandler(result, error);
|
||||||
}
|
}
|
||||||
- (BOOL)segmentAsyncInImage:(MPPImage *)image
|
- (BOOL)segmentAsyncImage:(MPPImage *)image
|
||||||
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
timestampInMilliseconds:(NSInteger)timestampInMilliseconds
|
||||||
error:(NSError **)error {
|
error:(NSError **)error {
|
||||||
return [_visionTaskRunner processLiveStreamImage:image
|
return [_visionTaskRunner processLiveStreamImage:image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user