AI-generated Key Takeaways
-
SubjectSegmentation is the entry point to get a SubjectSegmenter for generating SubjectSegmentationResult in a supplied image.
-
The static method getClient() is used to obtain a new instance of SubjectSegmenter by providing SubjectSegmenterOptions.
-
Resources associated with a SubjectSegmenter should be released by calling its close() method when it's no longer needed.
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.