public static class

FritzVisionObjectPredictorOptions.Builder

extends Object
java.lang.Object
   ↳ ai.fritz.fritzvisionobjectmodel.FritzVisionObjectPredictorOptions.Builder

Class Overview

Builder for FritzVisionObjectPredictorOptions

Summary

Public Constructors
Builder()
Public Methods
FritzVisionObjectPredictorOptions build()
Build the options.
FritzVisionObjectPredictorOptions.Builder confidenceThreshold(float confidenceThreshold)
Sets the confidence threshold for the predictor.
FritzVisionObjectPredictorOptions.Builder maxObjects(Integer maxObjects)
Sets the max number of objects to return.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public FritzVisionObjectPredictorOptions build ()

Build the options.

Returns
  • the created options for the predictor.

public FritzVisionObjectPredictorOptions.Builder confidenceThreshold (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 FritzVisionObjectPredictorOptions.Builder maxObjects (Integer maxObjects)

Sets the max number of objects to return.

The object predictor sorts the results by confidence score. This takes only the top N results.