Skip to main content
Version: 0.9.x

Interface: SegmentedInstance<L>

Defined in: types/instanceSegmentation.ts:30

Represents a single detected instance in instance segmentation output.

Type Parameters​

L​

L extends LabelEnum

The label map type for the model, must conform to LabelEnum.

Properties​

bbox​

bbox: Bbox

Defined in: types/instanceSegmentation.ts:31

The bounding box of the instance.


label​

label: keyof L

Defined in: types/instanceSegmentation.ts:35

The class label of the instance.


mask​

mask: Uint8Array

Defined in: types/instanceSegmentation.ts:32

Binary mask (0 or 1) representing the instance.


maskHeight​

maskHeight: number

Defined in: types/instanceSegmentation.ts:34

Height of the mask array.


maskWidth​

maskWidth: number

Defined in: types/instanceSegmentation.ts:33

Width of the mask array.


score​

score: number

Defined in: types/instanceSegmentation.ts:36

Confidence score [0, 1].