MLKitSegmentationSelfie Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Constants
The following constants are available globally.
-
Optimized for single static images.
-
Optimized to expedite the processing of a streaming video by leveraging the results from previous
images.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThere are two globally available constants: \u003ccode\u003esingleImage\u003c/code\u003e and \u003ccode\u003estream\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003esingleImage\u003c/code\u003e is optimized for processing single, static images.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003estream\u003c/code\u003e is optimized for processing streaming video by utilizing data from previous images to speed up processing.\u003c/p\u003e\n"]]],["The content defines two globally available constants for image processing: `singleImage` and `stream`. `singleImage` is optimized for static images, while `stream` is designed for video streams, speeding up processing by utilizing data from preceding images. Both constants are defined in Swift and are associated with the `MLKSegmenterMode` type, which is part of the ML Kit framework.\n"],null,["# MLKitSegmentationSelfie Framework Reference\n\nConstants\n=========\n\nThe following constants are available globally.\n- `\n ``\n ``\n `\n\n ### [singleImage](#/c:@MLKSegmenterModeSingleImage)\n\n `\n ` \n Optimized for single static images. \n\n #### Declaration\n\n Swift \n\n static let singleImage: /ml-kit/reference/swift/mlkitsegmentationselfie/api/reference/Type-Definitions#/c:MLKCommonSegmenterOptions.h@T@MLKSegmenterMode\n\n- `\n ``\n ``\n `\n\n ### [stream](#/c:@MLKSegmenterModeStream)\n\n `\n ` \n Optimized to expedite the processing of a streaming video by leveraging the results from previous\n images. \n\n #### Declaration\n\n Swift \n\n static let stream: /ml-kit/reference/swift/mlkitsegmentationselfie/api/reference/Type-Definitions#/c:MLKCommonSegmenterOptions.h@T@MLKSegmenterMode"]]