Type Alias: ObjectDetectorOptions<F, L>
ObjectDetectorOptions<
F,L> =Omit<ImagePreprocessorOptions,"resizeMode"> &object
Defined in: extensions/cv/tasks/objectDetection.ts:25
Options for configuring an object detector preprocessor, label vocabulary, and detection thresholds.
Type Declaration
boxFormat
readonlyboxFormat:F
How bounding box coordinates are interpreted BoxFormat.
defaultConfidenceThreshold
readonlydefaultConfidenceThreshold:number
Default minimum confidence score threshold for detections.
defaultIouThreshold
readonlydefaultIouThreshold:number
Default Intersection over Union (IoU) threshold for Non-Maximum Suppression (NMS).
labels
readonlylabels: readonlyL[]
Array of class labels matching the model's output vocabulary.
resizeMode
readonlyresizeMode:Exclude<ResizeMode,"crop">
Resize mode for preprocessing input images (excluding 'crop').
Type Parameters
F
F extends BoxFormat
L
L