Class SegmentImageConfig.Builder
- Enclosing class:
- SegmentImageConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SegmentImageConfig.Builder
binaryColorThreshold
(Float binaryColorThreshold) Setter for binaryColorThreshold.abstract SegmentImageConfig
build()
abstract SegmentImageConfig.Builder
confidenceThreshold
(Float confidenceThreshold) Setter for confidenceThreshold.abstract SegmentImageConfig.Builder
httpOptions
(HttpOptions httpOptions) Setter for httpOptions.httpOptions
(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract SegmentImageConfig.Builder
maskDilation
(Float maskDilation) Setter for maskDilation.abstract SegmentImageConfig.Builder
maxPredictions
(Integer maxPredictions) Setter for maxPredictions.abstract SegmentImageConfig.Builder
mode
(SegmentMode mode) Setter for mode.mode
(SegmentMode.Known knownType) Setter for mode given a known enum.Setter for mode given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
mode
Setter for mode.mode: The segmentation mode to use.
-
mode
Setter for mode given a known enum.mode: The segmentation mode to use.
-
mode
Setter for mode given a string.mode: The segmentation mode to use.
-
maxPredictions
Setter for maxPredictions.maxPredictions: The maximum number of predictions to return up to, by top confidence score.
-
confidenceThreshold
Setter for confidenceThreshold.confidenceThreshold: The confidence score threshold for the detections as a decimal value. Only predictions with a confidence score higher than this threshold will be returned.
-
maskDilation
Setter for maskDilation.maskDilation: A decimal value representing how much dilation to apply to the masks. 0 for no dilation. 1.0 means the masked area covers the whole image.
-
binaryColorThreshold
Setter for binaryColorThreshold.binaryColorThreshold: The binary color threshold to apply to the masks. The threshold can be set to a decimal value between 0 and 255 non-inclusive. Set to -1 for no binary color thresholding.
-
build
-