Type Alias: InstanceSegmentationResult<F, L>
InstanceSegmentationResult<
F,L> =object
Defined in: extensions/cv/tasks/instanceSegmentation.ts:99
Result structure representing a single detected instance with its bounding box, segmentation mask, label, and confidence score.
Type Parameters
F
F extends BoxFormat
The format type of the bounding box.
L
L
The label type.
Properties
box
readonlybox:BoundingBox<F>
Defined in: extensions/cv/tasks/instanceSegmentation.ts:101
Scaled bounding box coordinates matching the input image resolution.
confidence
readonlyconfidence:number
Defined in: extensions/cv/tasks/instanceSegmentation.ts:107
Confidence score of the instance detection (between 0.0 and 1.0).
label
readonlylabel:L
Defined in: extensions/cv/tasks/instanceSegmentation.ts:105
Predicted instance class label.
mask
readonlymask:ImageBuffer
Defined in: extensions/cv/tasks/instanceSegmentation.ts:103
Binary segmentation mask buffer cropped to the instance bounding box.