MLKitSegmentationSelfie Framework Reference

  • There are two globally available constants: singleImage and stream .

  • singleImage is optimized for processing single, static images.

  • stream is optimized for processing streaming video by utilizing data from previous images to speed up processing.

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 
     
     
    
Design a Mobile Site
View Site in Mobile | Classic
Share by: