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

Clothes Airing Violation Detection

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • Result example:
    { 
         "stream_id": "001", 
         "event_type": 2359296, 
         "task_id": "taskud8b8499", 
         "timestamp": 1560346229, 
         "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218", 
         "image_base64":"/9j/4AAQSkZJRgA...", 
          "data":{ 
              "event_set":[ 
                    { 
                     "bounding_box": { 
                         "x": 0, 
                         "y": 618, 
                         "w": 585, 
                         "h": 462 
                     },
                     "polygon_name": "a", 
                     "detection_id": "83BFC020-4FC8-11EA-9F93-0242AC110004"
                 } 
            ] 
         } 
     }
  • JSON format

    Field

    Type

    Description

    stream_id

    String

    Camera ID

    event_type

    Uint64

    Event type of the output message.

    • The value is fixed to 2359296, which is 0x 0000 0000 0024 0000 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.

  • 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