---
title: "DetectOptions"
sidebar_label: "DetectOptions"
description: "Kotlin binding reference: DetectOptions."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[DetectOptions](index.md)

# DetectOptions

[common]\
data class [DetectOptions](index.md)(val maxResults: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = DEFAULT_MAX_RESULTS, val scoreThreshold: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = DEFAULT_SCORE_THRESHOLD, val labels: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)&gt; = emptyList())

How a detection runs. The engine floors the scores at [scoreThreshold](scoreThreshold.md), keeps the strongest [maxResults](maxResults.md) and answers them score-descending.

## Constructors

| | |
|---|---|
| [DetectOptions](DetectOptions.md) | [common]<br>constructor(maxResults: [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) = DEFAULT_MAX_RESULTS, scoreThreshold: [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) = DEFAULT_SCORE_THRESHOLD, labels: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)&gt; = emptyList()) |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [labels](labels.md) | [common]<br>val [labels](labels.md): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)&gt;<br>The things to look for, one phrase each (`cat`, `remote control`), on a detector whose [Capabilities.openVocabulary](../Capabilities/openVocabulary.md) 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](maxResults.md) | [common]<br>val [maxResults](maxResults.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)<br>The most detections answered. |
| [scoreThreshold](scoreThreshold.md) | [common]<br>val [scoreThreshold](scoreThreshold.md): [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)<br>The lowest score answered, 0 to 1. |