ImageClassifier
Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:38
Properties
Section titled “Properties”inputSize
Section titled “inputSize”
readonlyinputSize:number
Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:42
Width and height of the model input in pixels.
labels
Section titled “labels”
readonlylabels: readonlystring[]
Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:40
The class names, by class index.
Methods
Section titled “Methods”classify()
Section titled “classify()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<Classification & object[]>
dispose()
Section titled “dispose()”dispose():
void
Defined in: packages/runntime/src/zoo/tasks/cv/imageClassification.ts:49
Frees the weights and every GPU buffer the runner holds.
Returns
Section titled “Returns”void