AI-generated Key Takeaways
-
SubjectSegmentation
provides an entry point to access subject segmentation capabilities in images. -
It offers a
getClient
method to obtain aSubjectSegmenter
instance for generating segmentation results. -
SubjectSegmenter
requires explicit resource release using theclose()
method when no longer needed. -
The segmentation process involves generating
SubjectSegmentationResult
objects containing the identified subject.
Entry point to get an SubjectSegmenter
for generating
SubjectSegmentationResult
in a supplied image.
Public Method Summary
static SubjectSegmenter |
getClient(SubjectSegmenterOptions
options)
Gets an new instance of
SubjectSegmenter to generate
SubjectSegmentationResult in a supplied image.
|
Inherited Method Summary
Public Methods
public static SubjectSegmenter getClient (SubjectSegmenterOptions options)
Gets an new instance of
SubjectSegmenter
to generate
SubjectSegmentationResult
in a supplied image.
To release the resources associated with a
SubjectSegmenter
, you need to ensure that
SubjectSegmenter.close()
is called on the resulting
SubjectSegmenter
instance once it will no longer be used.