Builder for InteractiveSegmenter.InteractiveSegmenterOptions
.
Public Constructors
Builder()
|
Public Methods
final InteractiveSegmenter.InteractiveSegmenterOptions |
build()
Builds the
InteractiveSegmenter.InteractiveSegmenterOptions instance. |
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder | |
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder | |
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder |
setOutputCategoryMask(boolean value)
Sets whether to output category mask.
|
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder |
setOutputConfidenceMasks(boolean value)
Sets whether to output confidence masks.
|
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder |
setResultListener(ResultListener<ImageSegmenterResult, MPImage> value)
Sets an optional
OutputHandler.ResultListener to receive the segmentation results when the graph
pipeline is done processing an image. |
Inherited Methods
Public Constructors
public Builder ()
Public Methods
public final InteractiveSegmenter.InteractiveSegmenterOptions build ()
Builds the InteractiveSegmenter.InteractiveSegmenterOptions
instance.
public abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder setBaseOptions (BaseOptions value)
Sets the base options for the image segmenter task.
Parameters
value |
---|
public abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder setErrorListener (ErrorListener value)
Sets an optional ErrorListener
}.
Parameters
value |
---|
public abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder setOutputCategoryMask (boolean value)
Sets whether to output category mask. Default to false.
Parameters
value |
---|
public abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder setOutputConfidenceMasks (boolean value)
Sets whether to output confidence masks. Default to true.
Parameters
value |
---|
public abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder setResultListener (ResultListener<ImageSegmenterResult, MPImage> value)
Sets an optional OutputHandler.ResultListener
to receive the segmentation results when the graph
pipeline is done processing an image.
Parameters
value |
---|