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
readonlylabels: readonlyL[]
Array of class labels matching the model's output vocabulary.
outInterpolation
readonlyoutInterpolation:InterpolationMethod
Interpolation method used when resizing output masks back to input image dimensions.
resizeMode
readonlyresizeMode:"stretch"
Resize mode for input images. Must be 'stretch'.
Type Parameters
L
L