InteractiveSegmenter.InteractiveSegmenterOptions.Builder

public static abstract class InteractiveSegmenter.InteractiveSegmenterOptions.Builder

Public Constructors

Public Methods

final InteractiveSegmenter.InteractiveSegmenterOptions
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder
setBaseOptions(BaseOptions value)
Sets the base options for the image segmenter task.
abstract InteractiveSegmenter.InteractiveSegmenterOptions.Builder
setErrorListener(ErrorListener value)
Sets an optional ErrorListener}.
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<ImageSegmenterResultMPImage> 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 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<ImageSegmenterResultMPImage> value)

Sets an optional OutputHandler.ResultListener to receive the segmentation results when the graph pipeline is done processing an image.

Parameters
value