Skip to content

InstanceSegmentation

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

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:53

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:49

The class index into labels.


readonly confidence: number

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

The score, 0 to 1.


readonly label: string

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

The class name, like person or bus.


readonly mask: ImageBuffer

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

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.