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

Fire Passage Obstruction Detection

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • The JSON result includes the alarm of fire passage obstructed by vehicles or by other objects.
    • JSON example (passageway obstructed by vehicles)
      {
          "event_type": 1179649,
          "task_id": "a066974ae7334649a37257242c5fa4c3",
          "stream_id": "001",
          "timestamp": 1560346229,
          "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
          "image_base64":"/9j/4AAQSkZJRgA...",
           "data":{
               "event_set":[
                  {
                      "detection_id": "83BFC020-4FC8-11EA-9F93-0242AC110004",
                      "plate_id":"XXXXXXX",
                      "polygon_name":"",
                      "bounding_box": {
                          "x":1712,
                          "y":560,
                          "w":207,
                          "h":180
                      }
                  }
              ]
          }
      }
    • JSON example (passageway obstructed by other objects)
      {
          "event_type": 1179648,
          "task_id": "a066974ae7334649a37257242c5fa4c3",
          "stream_id": "001",
          "timestamp": 1560346229,
          "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
          "image_base64":"/9j/4AAQSkZJRgA...",
           "data":{
               "event_set":[
                  {
                      "detection_id": "83BFC020-4FC8-11EA-9F93-0242AC110004",
                      "polygon_name":"",
                      "bounding_box": {
                          "x":679,
                          "y":376,
                          "w":483,
                          "h":342
                      }
                  }
              ]
          }
      }
    • JSON format

      Field

      Type

      Description

      stream_id

      String

      Camera ID

      event_type

      Uint64

      Quickly identifies the output message type of the service for detecting the occupation of the fire extinguishing channel.

      • For object obstruction, the value is fixed to 1179648, which corresponds to 0x 0000 0000 0012 0000 in hexadecimal format.
      • For vehicle obstruction, the value is fixed to 1179649, which corresponds to 0x 0000 0000 0012 0001 in hexadecimal format.

      task_id

      String

      Task ID

      message_id

      String

      UUID that uniquely identifies the output message

      timestamp

      Uint64

      Time when the alarm is triggered

      image_base64

      String

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

      data

      Object

      Service output content

    • 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

      polygon_name

      String

      Name of the area where the target is located. For the area name setting, see the target_roi field. If the area name is not set, this field is an empty string by default.

      detection_id

      String

      UUID of the alarm target. In the same detection area, the IDs of consecutively detected alarms remain unchanged. If the detection target is lost during tracking, the ID changes.

      plate_id

      String

      License plate number of the vehicle in the reported alarm (7-digit or 8-digit). This parameter is available only when vehicle_occupation_sw is set to 1.

      Note that the license plate may be blocked, blurred, or some fields are similar. As a result, the license plate detection fails or is inaccurate. If the detection fails, an empty string is output.

    • 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