SubjectSegmentation
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
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\u003e\u003ccode\u003eSubjectSegmentation\u003c/code\u003e provides an entry point to access subject segmentation capabilities in images.\u003c/p\u003e\n"],["\u003cp\u003eIt offers a \u003ccode\u003egetClient\u003c/code\u003e method to obtain a \u003ccode\u003eSubjectSegmenter\u003c/code\u003e instance for generating segmentation results.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSubjectSegmenter\u003c/code\u003e requires explicit resource release using the \u003ccode\u003eclose()\u003c/code\u003e method when no longer needed.\u003c/p\u003e\n"],["\u003cp\u003eThe segmentation process involves generating \u003ccode\u003eSubjectSegmentationResult\u003c/code\u003e objects containing the identified subject.\u003c/p\u003e\n"]]],[],null,["# SubjectSegmentation\n\npublic class **SubjectSegmentation** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nEntry point to get an [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter)\nfor generating [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) in a supplied image. \n\n### Public Method Summary\n\n|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) | [getClient](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentation#getClient(com.google.mlkit.vision.segmentation.subject.SubjectSegmenterOptions))([SubjectSegmenterOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions) options) Gets an new instance of [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) to generate [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) in a supplied image. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nPublic Methods\n--------------\n\n#### public static [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter)\n**getClient** ([SubjectSegmenterOptions](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenterOptions) options)\n\nGets an new instance of [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) to generate [SubjectSegmentationResult](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmentationResult) in a supplied image.\n\nTo release the resources associated with a [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter), you need to ensure that [SubjectSegmenter.close()](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter#close()) is called on the resulting [SubjectSegmenter](/android/reference/com/google/mlkit/vision/segmentation/subject/SubjectSegmenter) instance once it will no longer be used."]]