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

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

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

# detect

[common]\
fun [detect](detect.md)(image: [ImageInput](../ImageInput/index.md), options: [DetectOptions](../DetectOptions/index.md), listener: [VisionListener](../VisionListener/index.md)): [VisionHandle](../VisionHandle/index.md)

Find the objects in [image](detect.md) under [options](detect.md); [VisionListener.onDetections](../VisionListener/onDetections.md) gets the boxes in the picture's pixels, score-descending, then [VisionListener.onDone](../VisionListener/onDone.md). A model without [VisionTask.DETECT](../VisionTask/DETECT.md), labels given to a detector with its own table, or none given to an open-vocabulary one end in [VisionListener.onError](../VisionListener/onError.md).