//clika-runtime/io.clika.modelverse/DetectOptions
DetectOptions
[common]
data class DetectOptions(val maxResults: Int = DEFAULT_MAX_RESULTS, val scoreThreshold: Float = DEFAULT_SCORE_THRESHOLD, val labels: List<String> = emptyList())
How a detection runs. The engine floors the scores at scoreThreshold, keeps the strongest maxResults and answers them score-descending.
Constructors
| DetectOptions | [common] constructor(maxResults: Int = DEFAULT_MAX_RESULTS, scoreThreshold: Float = DEFAULT_SCORE_THRESHOLD, labels: List<String> = emptyList()) |
Types
| Name | Summary |
|---|---|
| Companion | [common] object Companion |
Properties
| Name | Summary |
|---|---|
| labels | [common] val labels: List<String> The things to look for, one phrase each ( cat, remote control), on a detector whose Capabilities.openVocabulary is true; it answers the phrase it matched as the label and the phrase's index as the id. Required there; refused on a detector with its own label table, which answers that table. |
| maxResults | [common] val maxResults: Int The most detections answered. |
| scoreThreshold | [common] val scoreThreshold: Float The lowest score answered, 0 to 1. |