com.google.mlkit.vision.segmentation
Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
A Segmentation
client for identifying pixels in a supplied image as being part of the foreground or
the background.
Classes
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-10-31 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-10-31 UTC."],[[["\u003cp\u003eThe ML Kit Segmentation API enables identification of foreground and background pixels within images.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmenter\u003c/code\u003e interface facilitates the segmentation process, providing access to the \u003ccode\u003eSegmentation\u003c/code\u003e functionality.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmentation\u003c/code\u003e serves as the entry point for image segmentation analysis, generating a \u003ccode\u003eSegmentationMask\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmentationMask\u003c/code\u003e encapsulates the results, representing the identified foreground and background pixels.\u003c/p\u003e\n"]]],["The provided content describes components for image segmentation. The `Segmenter` interface is a client for identifying pixels as foreground or background. The `Segmentation` class serves as the entry point for this process. The `SegmentationMask` class represents the result of the segmentation, containing the information about which pixels are categorized as foreground or background. Essentially, the system segments images and returns a mask indicating pixel categorization.\n"],null,["# com.google.mlkit.vision.segmentation\n\n### Interfaces\n\n|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Segmenter](/android/reference/com/google/mlkit/vision/segmentation/Segmenter) | A [Segmentation](/android/reference/com/google/mlkit/vision/segmentation/Segmentation) client for identifying pixels in a supplied image as being part of the foreground or the background. |\n\n### Classes\n\n|----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| [Segmentation](/android/reference/com/google/mlkit/vision/segmentation/Segmentation) | Entry point for identifying pixels in a supplied image as being part of the foreground or the background. |\n| [SegmentationMask](/android/reference/com/google/mlkit/vision/segmentation/SegmentationMask) | Result of [Segmentation](/android/reference/com/google/mlkit/vision/segmentation/Segmentation). |"]]