Type Alias: ObjectDetector<F, L>
ObjectDetector<
F,L> =object
Defined in: extensions/cv/tasks/objectDetection.ts:92
Object detection task runner.
Type Parameters
F
F extends BoxFormat
The bounding box format.
L
L
The type representing the class labels.
Properties
detectObjects()
readonlydetectObjects: (input,options?) =>Promise<ObjectDetection<F,L>[]>
Defined in: extensions/cv/tasks/objectDetection.ts:108
Asynchronously performs object detection on the input image.
Parameters
input
The input image buffer.
options?
Configuration options for object detection. See DetectObjectsOptions.
Returns
Promise<ObjectDetection<F, L>[]>
A promise resolving to the list of object detections.
Throws
With code INVALID_ARGUMENT if predicted class
index is out of bounds, RESOURCE_BUSY if the model is in use, or
RESOURCE_DISPOSED if disposed.
detectObjectsWorklet()
readonlydetectObjectsWorklet: (input,options?) =>ObjectDetection<F,L>[]
Defined in: extensions/cv/tasks/objectDetection.ts:117
Synchronous version of detectObjects to be executed directly on the caller or worklet thread.
Parameters
input
options?
Returns
ObjectDetection<F, L>[]
dispose()
readonlydispose: () =>void
Defined in: extensions/cv/tasks/objectDetection.ts:96
Releases all allocated native resources.
Returns
void