Skip to content

InstanceSegmentation

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:38

One object found in the image.

readonly box: object & Readonly<{ xmax: number; xmin: number; ymax: number; ymin: number; }>

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:46

Where it sits, in pixels of the input image.

readonly format: "xyxy"


readonly classId: number

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:42

The class index into labels.


readonly confidence: number

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:44

The score, 0 to 1.


readonly label: string

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:40

The class name, like person or bus.


readonly mask: ImageBuffer

Defined in: packages/runntime/src/zoo/tasks/cv/instanceSegmentation.ts:51

Which pixels of box are the object: a gray image that covers the box, at about a quarter of the model input’s resolution. 0 is outside the object, 255 inside, in between along the edge. Stretch it over box when drawing.