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

Individual Behavior 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": 720896,
         "task_id": "de6f35a7cd904830b2ca544e4613febe",
         "stream_id": "test_stream",
         "timestamp": 1535546604,
         "message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
         "image_base64": "/9j/4AAQSkZJRgABAJDA...",
         "data": {
            "event_set":[
                  {
                      "bounding_box":{
                           "x":100,
                           "y":200,
                           "w":80,
                           "h":150
                       }
                   },
                  {
                       "bounding_box":{
                            "x":200,
                            "y":300,
                            "w":70,
                            "h":150
                       }
                   }
               ]
         }
    }
  • JSON format

    Field

    Type

    Description

    event_type

    Uint64

    Event type of the output alarm.

    • For a smoking event, this value is fixed to 720896.
    • For an event of using the mobile phone, this value is fixed to 786432.

    task_id

    String

    Task ID

    stream_id

    String

    Camera ID

    timestamp

    Uint64

    Time stamp when an alarm is triggered

    message_id

    String

    Alarm ID in the form of a UUID

    image_base64

    String

    Base64 encoding results of the image correspond to the video frame when an alarm is triggered

    data

    Object

    A list of the output results. Each group of data corresponds to the alarm ID and the target list. For details, see data parameters.

  • data parameters

    Field

    Type

    Description

    event_set

    List<Object>

    List of events generated

  • data parameters

    Field

    Type

    Description

    bounding_box

    Object

    Rectangle for the alarm object

  • 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