Skip to main content

Kafka Message Format

When using the Kafka sink, the pipeline sends one JSON message per frame containing all detected objects:

{
"version": "1.0",
"source_id": 0,
"frame_id": 180,
"timestamp": "2026-01-29T16:39:38.066Z",
"objects": [
{
"class_id": 0,
"label": "car",
"confidence": 0.93,
"bbox": {
"left": 384.89,
"top": 321.08,
"width": 16.56,
"height": 16.64
},
"tracking_id": 19
}
]
}

Schema

FieldTypeDescription
versionstringMessage schema version (currently "1.0")
source_idintegerInput stream index this frame belongs to
frame_idintegerFrame number since pipeline start
timestampstringRFC 3339 wall-clock timestamp
objectsarrayDetected objects in this frame
objects[].class_idintegerModel output class ID
objects[].labelstringClass name from the model's label file
objects[].confidencefloatDetection confidence (0.0 – 1.0)
objects[].bboxobjectBounding box: left, top, width, height (in pixels)
objects[].tracking_idintegerTracker-assigned ID (-1 if no tracker is configured)