ObjectDetector
Defined in: packages/runntime/src/zoo/tasks/cv/objectDetection.ts:48
Properties
Section titled “Properties”labels
Section titled “labels”
readonlylabels: readonlystring[]
Defined in: packages/runntime/src/zoo/tasks/cv/objectDetection.ts:50
The class names, by class index.
Methods
Section titled “Methods”detectObjects()
Section titled “detectObjects()”detectObjects(
image,options?):Promise<ObjectDetection[]>
Defined in: packages/runntime/src/zoo/tasks/cv/objectDetection.ts:52
Image in, the objects in it out, best first.
Parameters
Section titled “Parameters”options?
Section titled “options?”Returns
Section titled “Returns”Promise<ObjectDetection[]>
dispose()
Section titled “dispose()”dispose():
void
Defined in: packages/runntime/src/zoo/tasks/cv/objectDetection.ts:54
Frees the weights and every GPU buffer the runner holds.
Returns
Section titled “Returns”void