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

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

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

# ObjectDetectionPipeline

[common]\
class [ObjectDetectionPipeline](index.md) : [Pipeline](../Pipeline/index.md)

Detection over a [VisionModel](../VisionModel/index.md): a picture answers its detections; the candidateLabels name the phrases an open-vocabulary detector looks for.

## Properties

| Name | Summary |
|---|---|
| [model](model.md) | [common]<br>open override val [model](model.md): [VisionModel](../VisionModel/index.md)<br>The loaded model the pipeline runs. |
| [task](../Pipeline/task.md) | [common]<br>val [task](../Pipeline/task.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>The task the pipeline serves, in transformers' spelling. |

## Functions

| Name | Summary |
|---|---|
| [close](../Pipeline/close.md) | [common]<br>open fun [close](../Pipeline/close.md)(): &lt;Error class: unknown class&gt; |
| [invoke](invoke.md) | [common]<br>operator fun [invoke](invoke.md)(image: [ImageInput](../ImageInput/index.md), options: [DetectOptions](../DetectOptions/index.md) = DetectOptions(), candidateLabels: [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()): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Detection](../Detection/index.md)&gt; |