Skip to main content
Version: 0.10.0

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

readonly box: BoundingBox<F>

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

Scaled bounding box coordinates matching the input image resolution.


confidence

readonly confidence: number

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

Confidence score of the instance detection (between 0.0 and 1.0).


label

readonly label: L

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

Predicted instance class label.


mask

readonly mask: ImageBuffer

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

Binary segmentation mask buffer cropped to the instance bounding box.