Skip to content

@camera.ui/sdk / sensor / VideoFrameData

Interface: VideoFrameData

Defined in: sensor/detection.ts:45

Video frame data delivered to detector sensors by the backend pipeline. The backend handles capture, decoding, and scaling — detectors only need to process the pixel payload.

Properties

cameraId?

optional cameraId?: string

Defined in: sensor/detection.ts:49

Camera the frame originated from.


data

data: ArrayBuffer | Buffer<ArrayBufferLike>

Defined in: sensor/detection.ts:51

Raw pixel buffer.


format

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

Defined in: sensor/detection.ts:57

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


height

height: number

Defined in: sensor/detection.ts:55

Frame height in pixels.


id

id: string

Defined in: sensor/detection.ts:47

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


label?

optional label?: string

Defined in: sensor/detection.ts:61

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


timestamp?

optional timestamp?: number

Defined in: sensor/detection.ts:59

Capture timestamp in milliseconds since epoch.


width

width: number

Defined in: sensor/detection.ts:53

Frame width in pixels.