com.google.mlkit.vision.segmentation.subject
Stay organized with collections
Save and categorize content based on your preferences.
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.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eSubjectSegmentation\u003c/code\u003e provides an entry point to segment subjects in an image using \u003ccode\u003eSubjectSegmenter\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubjectSegmenter\u003c/code\u003e generates \u003ccode\u003eSubjectSegmentationResult\u003c/code\u003e which contains information about segmented subjects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubject\u003c/code\u003e represents a single segmented subject from the input image.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubjectSegmenterOptions\u003c/code\u003e and \u003ccode\u003eSubjectSegmenterOptions.SubjectResultOptions\u003c/code\u003e allow customization of the segmentation process and output.\u003c/p\u003e\n"]]],[],null,["# com.google.mlkit.vision.segmentation.subject\n\n### Interfaces\n\n|------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) | An [SubjectSegmentation](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentation) client for generating [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) in a supplied image. |\n\n### Classes\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject) | A segmented subject from the input image by [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter). |\n| [SubjectSegmentation](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentation) | Entry point to get an [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) for generating [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) in a supplied image. |\n| [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) | Result of [SubjectSegmentation](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentation). |\n| [SubjectSegmenterOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions) | Options for [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter). |\n| [SubjectSegmenterOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.Builder) | Builder class for [SubjectSegmenterOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions). |\n| [SubjectSegmenterOptions.SubjectResultOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions) | Options for results in [Subject](/android/reference/com/google/mlkit/vision/segmentation/subject/Subject). |\n| [SubjectSegmenterOptions.SubjectResultOptions.Builder](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions.Builder) | Builder class for [SubjectSegmenterOptions.SubjectResultOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions.SubjectResultOptions). |"]]