This protocol defines an interface for the delegates of ImageSegmenter object to receive
results of performing asynchronous segmentation on images (i.e, when runningMode =
liveStream).
The delegate of ImageSegmenter must adopt ImageSegmenterLiveStreamDelegate protocol.
The methods in this protocol are optional.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-08 UTC."],[],[],null,["# MediaPipeTasksVision Framework Reference\n\nMPPImageSegmenterLiveStreamDelegate\n===================================\n\n @protocol MPPImageSegmenterLiveStreamDelegate \u003cNSObject\u003e\n\nThis protocol defines an interface for the delegates of `ImageSegmenter` object to receive\nresults of performing asynchronous segmentation on images (i.e, when `runningMode` =\n`liveStream`).\n\nThe delegate of `ImageSegmenter` must adopt `ImageSegmenterLiveStreamDelegate` protocol.\nThe methods in this protocol are optional.\n- `\n ``\n ``\n `\n\n ### [-imageSegmenter:didFinishSegmentationWithResult:timestampInMilliseconds:error:](#/c:objc(pl)MPPImageSegmenterLiveStreamDelegate(im)imageSegmenter:didFinishSegmentationWithResult:timestampInMilliseconds:error:)\n\n `\n ` \n This method notifies a delegate that the results of asynchronous segmentation of\n an image submitted to the `ImageSegmenter` is available.\n\n This method is called on a private serial dispatch queue created by the `ImageSegmenter`\n for performing the asynchronous delegates calls. \n\n #### Declaration\n\n Objective-C \n\n - (void)imageSegmenter:(nonnull ../Classes/MPPImageSegmenter.html *)imageSegmenter\n didFinishSegmentationWithResult:(nullable ../Classes/MPPImageSegmenterResult.html *)result\n timestampInMilliseconds:(NSInteger)timestampInMilliseconds\n error:(nullable NSError *)error;\n\n #### Parameters\n\n |---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------|\n | ` `*imageSegmenter*` ` | The image segmenter which performed the segmentation. This is useful to test equality when there are multiple instances of `ImageSegmenter`. |\n | ` `*result*` ` | The `ImageSegmenterResult` object that contains a list of category or confidence masks and optional quality scores. |\n | ` `*timestampInMilliseconds*` ` | The timestamp (in milliseconds) which indicates when the input image was sent to the image segmenter. |\n | ` `*error*` ` | An optional error parameter populated when there is an error in performing segmentation on the input live stream image data. |"]]