MLKitSegmentationCommon Framework Reference

  • Three main classes (CommonSegmenterOptions, SegmentationMask, and Segmenter) are available for image segmentation tasks.

  • CommonSegmenterOptions allows customization of the segmentation process.

  • SegmentationMask encapsulates the result obtained from the segmentation operation.

  • Segmenter is the core class responsible for executing the image segmentation.

Classes

The following classes are available globally.

  • Options for specifying a segmenter.

    Declaration

    Swift

    class CommonSegmenterOptions : NSObject
  • The result from a segmenter operation.

    Declaration

    Swift

    class SegmentationMask : NSObject
  • A detector that performs segmentation on input images.

    Declaration

    Swift

    class Segmenter : NSObject