Skip to content

ImageClassifier

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:38

readonly inputSize: number

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:42

Width and height of the model input in pixels.


readonly labels: readonly string[]

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:40

The class names, by class index.

classify(image, options?): Promise<Classification & object[]>

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:44

Image in, its most likely classes out, best first.

ImageBuffer

ClassifyOptions

Promise<Classification & object[]>


dispose(): void

Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:49

Frees the weights and every GPU buffer the runner holds.

void