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
readonlyboxFormat:F
How bounding box coordinates are interpreted BoxFormat.
defaultConfidenceThreshold
readonlydefaultConfidenceThreshold:number
Default minimum confidence score threshold for detected instances.
defaultIouThreshold
readonlydefaultIouThreshold:number
Default Intersection over Union (IoU) threshold for Non-Maximum Suppression (NMS).
defaultMaskThreshold
readonlydefaultMaskThreshold:number
Default probability threshold for mask values.
labels
readonlylabels: readonlyL[]
Array of class labels matching the model's output vocabulary.
resizeMode
readonlyresizeMode:"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.