ImageSegmenter.ImageSegmenterOptions

public abstract class ImageSegmenter.ImageSegmenterOptions extends TaskOptions


Options for setting up an ImageSegmenter.

Summary

Nested types

Builder for ImageSegmenterOptions.

Public constructors

Public methods

static ImageSegmenter.ImageSegmenterOptions.Builder
CalculatorOptionsProto.CalculatorOptions

Converts an ImageSegmenterOptions to a CalculatorOptions protobuf message.

Inherited methods

From com.google.mediapipe.tasks.core.TaskOptions
BaseOptionsProto.BaseOptions

Converts a BaseOptions instance to a BaseOptionsProto.BaseOptions protobuf message.

BaseOptionsProto.BaseOptions
convertBaseOptionsToProto(BaseOptions options, boolean useLiteRt)

Converts a BaseOptions instance to a BaseOptionsProto.BaseOptions protobuf message, optionally routing inference through the LiteRT backend.

Any

Converts a MediaPipe Tasks task-specific options to an proto3 Any message.

Public constructors

ImageSegmenterOptions

public ImageSegmenterOptions()

Public methods

convertToCalculatorOptionsProto

public CalculatorOptionsProto.CalculatorOptions convertToCalculatorOptionsProto()

Converts an ImageSegmenterOptions to a CalculatorOptions protobuf message.