Updated on 2024-02-29 GMT+08:00

Fire and Smoke Detection

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • Result example:
    {
        "event_type": 393216,
        "task_id": "2f268b9472a544e991eae3c5c3534f5b",
        "stream_id": "b664d367-3bf4-4d94-969f-b877d8c5d9ae",
        "timestamp": 1558645124,
        "message_id": "82C02174-4FEB-11EA-9357-407D0FAD91FC",
        "image_base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/",
        "data": {
            "event_set": [
                {
                    "state": 2,
                    "bounding_box": {
                        "x": 27,
                        "y": 0,
                        "w": 115,
                        "h": 115
                    }
                }
            ]
        }
    }
  • JSON format

    Field

    Type

    Description

    stream_id

    String

    Camera ID

    event_type

    Uint64

    Event type of the output message.

    The value is fixed to 393216, which is 0x 0000 0000 0006 0000 in hexadecimal format.

    task_id

    String

    Task ID

    timestamp

    Uint64

    Time when the alarm is triggered

    message_id

    String

    Alarm ID in the form of a UUID

    data

    Object

    Service input content

    image_base64

    String

    Base64 encoding results of the video image when the alarm is triggered

  • data parameters

    Field

    Type

    Description

    event_set

    List<Object>

    List of events generated

  • event_set parameters

    Field

    Type

    Description

    bounding_box

    Object

    Rectangle for the alarm object

    state

    Int

    Type of the smoke and fire detection alarm:
    • 1: fire detected
    • 2: smoke detected
  • bounding_box parameters

    Field

    Type

    Description

    x

    Int

    Horizontal coordinate of the upper-left corner of a bounding box

    y

    Int

    Vertical coordinate of the upper-left corner of a bounding box

    w

    Int

    Width of a bounding box

    h

    Int

    Height of a bounding box