Sets the MQTT config for a particular camera.

Object Position Events from the camera will be published to the server specified in the MQTT config.

**Object Position Event Schema

Parameter

Type

Description

camera_id

Integer

The unique identifier of the camera.

objects

Array of Objects

An array of objects that were detected.

obj_id

Integer

The unique identifier of the detected object.

detections

Array of Detections

An array of instances where the objects were detected.

timestamp

Integer

The time where the object was detected.
Formatted as a Unix timestamp in milliseconds.

x1, y1

Integer

The coordinates of the upper-left corner of the detected object.
Measured as the relative distance in pixels form the upper-left corner of the image.

x2, y2

Integer

The coordinates of the bottom-right corner of the detected object.
Measured as the relative distance in pixels form the bottom-right corner of the image.

Example of Object Position Event

{
  "camera_id": "9863f032-f354-4bf6-94b1-e9ae84406809",
  "objects": [
    {
      "obj_id": 165879446013500,
      "type": "person",
      "detections": [
        {
          "timestamp": 1658794462235,
          "x1": 0.2589378356933594,
          "y1": 0.34261420369148254,
          "x2": 0.34516018629074097,
          "y2": 0.6407618522644043
        }
      ]
    },
    {
      "obj_id": 165879445343501,
      "type": "person",
      "detections": [
        {
          "timestamp": 1658794462235,
          "x1": 0.19411784410476685,
          "y1": 0.3762255311012268,
          "x2": 0.27725690603256226,
          "y2": 0.667906641960144
        }
      ]
    }
  ]
}
Language
Authentication
Header
Click Try It! to start a request and see the response here!