Skip to main content

//clika-runtime/io.clika.modelverse/ObjectDetectionPipeline

ObjectDetectionPipeline

[common]
class ObjectDetectionPipeline : Pipeline

Detection over a VisionModel: a picture answers its detections; the candidateLabels name the phrases an open-vocabulary detector looks for.

Properties​

NameSummary
model[common]
open override val model: VisionModel
The loaded model the pipeline runs.
task[common]
val task: String
The task the pipeline serves, in transformers' spelling.

Functions​

NameSummary
close[common]
open fun close(): <Error class: unknown class>
invoke[common]
operator fun invoke(image: ImageInput, options: DetectOptions = DetectOptions(), candidateLabels: List<String> = emptyList()): List<Detection>