Skip to content

@camera.ui/sdk / sensor / SegmentationFrame

Interface: SegmentationFrame ​

Defined in: sensor/segmenter.ts:21

Crop handed to SegmenterSensor.segmentObjects, with the object it was cut for.

Extends ​

Properties ​

box ​

box: BoundingBox

Defined in: sensor/segmenter.ts:23

Box of the object to outline, normalized to this crop.


cameraId? ​

optional cameraId?: string

Defined in: sensor/detection.ts:55

Camera the frame originated from.

Inherited from ​

VideoFrameData.cameraId


data ​

data: ArrayBuffer | Buffer<ArrayBufferLike>

Defined in: sensor/detection.ts:57

Raw pixel buffer.

Inherited from ​

VideoFrameData.data


format ​

format: "nv12" | "rgb" | "rgba" | "gray"

Defined in: sensor/detection.ts:63

Pixel format: 'rgb' = 3 bytes/pixel interleaved, 'rgba' = 4 bytes/pixel, 'gray' = 1 byte/pixel, 'nv12' = YUV semi-planar.

Inherited from ​

VideoFrameData.format


height ​

height: number

Defined in: sensor/detection.ts:61

Frame height in pixels.

Inherited from ​

VideoFrameData.height


id ​

id: string

Defined in: sensor/detection.ts:53

Unique frame or crop identifier used to map batch results back to inputs.

Inherited from ​

VideoFrameData.id


label? ​

optional label?: string

Defined in: sensor/detection.ts:67

Trigger label propagated by the coordinator (e.g. 'person', 'vehicle') for secondary detectors.

Inherited from ​

VideoFrameData.label


timestamp? ​

optional timestamp?: number

Defined in: sensor/detection.ts:65

Capture timestamp in milliseconds since epoch.

Inherited from ​

VideoFrameData.timestamp


width ​

width: number

Defined in: sensor/detection.ts:59

Frame width in pixels.

Inherited from ​

VideoFrameData.width