@camera.ui/sdk / sensor / ObjectMask
Interface: ObjectMask ​
Defined in: sensor/segmenter.ts:9
Outline of one object: a mask laid over its box.
Properties ​
box ​
box:
BoundingBox
Defined in: sensor/segmenter.ts:11
Box the mask covers, normalized to the image the object was found in.
data ​
data:
Uint8Array
Defined in: sensor/segmenter.ts:17
One byte per pixel, row by row from the top left: how likely the pixel belongs to the object (0 - 255). Above 127 counts as the object.
height ​
height:
number
Defined in: sensor/segmenter.ts:15
Mask height in pixels.
width ​
width:
number
Defined in: sensor/segmenter.ts:13
Mask width in pixels.