public static class

FritzVisionSegmentPredictorOptions.Builder

extends Object
java.lang.Object
   ↳ ai.fritz.fritzvisionsegmentation.FritzVisionSegmentPredictorOptions.Builder

Class Overview

Builder for FritzVisionObjectPredictorOptions

Summary

Public Constructors
Builder()
Public Methods
FritzVisionSegmentPredictorOptions build()
Build the options.
FritzVisionSegmentPredictorOptions.Builder targetConfidenceThreshold(float confidenceThreshold)
Sets the confidence threshold for the predictor.
FritzVisionSegmentPredictorOptions.Builder targetSegmentClasses(List<MaskType> maskTypes)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public FritzVisionSegmentPredictorOptions build ()

Build the options.

Returns
  • the created options for the predictor.

public FritzVisionSegmentPredictorOptions.Builder targetConfidenceThreshold (float confidenceThreshold)

Sets the confidence threshold for the predictor.

The predictor will automatically filter out objects that have a confidence threshold lower than this specified amount.

Parameters
confidenceThreshold the threshold for predictions.

public FritzVisionSegmentPredictorOptions.Builder targetSegmentClasses (List<MaskType> maskTypes)