Skip to main content
Version: 0.10.0

Type Alias: InstanceSegmenterOptions<F, L>

InstanceSegmenterOptions<F, L> = Omit<ImagePreprocessorOptions, "resizeMode"> & object

Defined in: extensions/cv/tasks/instanceSegmentation.ts:35

Options for configuring an instance segmenter preprocessor, label vocabulary, and threshold parameters.

Type Declaration

boxFormat

readonly boxFormat: F

How bounding box coordinates are interpreted BoxFormat.

defaultConfidenceThreshold

readonly defaultConfidenceThreshold: number

Default minimum confidence score threshold for detected instances.

defaultIouThreshold

readonly defaultIouThreshold: number

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

defaultMaskThreshold

readonly defaultMaskThreshold: number

Default probability threshold for mask values.

labels

readonly labels: readonly L[]

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

resizeMode

readonly resizeMode: "stretch"

Resize mode for input images. Must be 'stretch'.

Type Parameters

F

F extends BoxFormat

The format type of the bounding box.

L

L

The label type.