Skip to main content
Version: 0.10.0

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

readonly boxFormat: F

How bounding box coordinates are interpreted BoxFormat.

defaultConfidenceThreshold

readonly defaultConfidenceThreshold: number

Default minimum confidence score threshold for detections.

defaultIouThreshold

readonly defaultIouThreshold: number

Default Intersection over Union (IoU) threshold for Non-Maximum Suppression (NMS).

labels

readonly labels: readonly L[]

Array of class labels matching the model's output vocabulary.

resizeMode

readonly resizeMode: Exclude<ResizeMode, "crop">

Resize mode for preprocessing input images (excluding 'crop').

Type Parameters

F

F extends BoxFormat

L

L