AI-generated Key Takeaways
-
ML Kit provides two globally available constants,
singleImageandstream, for image segmentation. -
The
singleImageconstant is optimized for processing individual, static images. -
The
streamconstant 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