public class

FritzVisionSegmentPredictorOptions

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

Class Overview

A tuning class to specify which predictions should be returned by FritzVisionSegmentPredictor#predictMasks(FritzVisionImage)

Summary

Nested Classes
class FritzVisionSegmentPredictorOptions.Builder Builder for FritzVisionObjectPredictorOptions  
Public Methods
float getTargetConfidenceThreshold()
Get the confidence threshold.
List<MaskType> getTargetSegments()
Gets the topN objects (sorted by confidence score).
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public float getTargetConfidenceThreshold ()

Get the confidence threshold.

Filters out objects less than the confidence threshold.

Returns
  • threshold between 0-1

public List<MaskType> getTargetSegments ()

Gets the topN objects (sorted by confidence score).

Returns
  • an integer specifying the N.