Skip to main content
Version: 0.10.0

Type Alias: SemanticSegmenterOptions<L>

SemanticSegmenterOptions<L> = Omit<ImagePreprocessorOptions, "resizeMode"> & object

Defined in: extensions/cv/tasks/semanticSegmentation.ts:32

Options for configuring a semantic segmenter preprocessor and label vocabulary.

Type Declaration

labels

readonly labels: readonly L[]

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

outInterpolation

readonly outInterpolation: InterpolationMethod

Interpolation method used when resizing output masks back to input image dimensions.

resizeMode

readonly resizeMode: "stretch"

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

Type Parameters

L

L