AI-generated Key Takeaways
-
This documentation outlines globally available type definitions used in ML Kit for segmentation tasks.
-
MLKSegmenterModedefines the different modes for the segmenter. -
MLKSegmentationCallbackis a block providing the segmentation mask or an error upon completion.
Type Definitions
The following type definitions are available globally.
-
@enum SegmenterMode Segmenter modes.
Declaration
Objective-C
typedef NSInteger MLKSegmenterMode -
A block containing the segmentation mask or
nilif there’s an error.Declaration
Objective-C
typedef void (^MLKSegmentationCallback)(MLKSegmentationMask *_Nullable, NSError *_Nullable)Parameters
maskThe mask from the image or
nilif there was an error.errorThe error or
nil.