MLKitSegmentationCommon Framework Reference

  • ML Kit provides two globally available constants, singleImage and stream, for image segmentation.

  • The singleImage constant is optimized for processing individual, static images.

  • The stream constant is designed for video streams, using previous image data to speed up processing of subsequent frames.

Constants

The following constants are available globally.

  • Optimized for single static images.

    Declaration

    Swift

    static let singleImage: SegmenterMode
  • Optimized to expedite the processing of a streaming video by leveraging the results from previous images.

    Declaration

    Swift

    static let stream: SegmenterMode