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

Peak Vehicle Counting

  • Data streams in JSON format are output to the specified DIS channels or webhook URLs, including structured data and images.
  • Result example:
    {
    	"event_type": 75010,
    	"task_id": "a066974ae7334649a37257242c5fa4c3",
    	"stream_id": "03543400000000000101#1c471506397a48ecab0ba52360bdd430",
    	"timestamp": 1535546604,
    	"message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
    	"image_base64": "/9j/4AAQSkZJRgABAJDA...",
    	"data": {
                  "interval": 10,
                  "event_set": [{ 
                       "count": 2,
                       "vehicles": [{
                            "bounding_box": { 
                                 "x": 858, 
                                 "y": 200, 
                                 "w": 679, 
                                 "h": 535 
                             }
                       },
                       {
                             "bounding_box": { 
                                  "x": 858, 
                                  "y": 200, 
                                  "w": 679, 
                                  "h": 535 
                              }
                       }]
                  }]
    	}
    }
  • JSON format

    Field

    Type

    Description

    event_type

    Int

    Output flag of the vehicle detection result. The value is fixed to 75010.

    message_id

    String

    UUID of the JSON output, which uniquely identifies the output record

    stream_id

    String

    Camera ID, which uniquely identifies a camera. For offline videos, video names are displayed to distinguish between different video sources.

    timestamp

    Int

    Timestamp when a vehicle is detected

    data

    Object

    List of fields in the vehicle detection result. For details, see the description of data parameters.

    image_base64

    String

    Base64 code of an image

    task_id

    String

    Task ID

  • data parameters

    Field

    Type

    Description

    interval

    Int

    Output interval, in seconds

    event_set

    List<Object>

    Output result list. Each detection area corresponds to an object.

  • event_set parameters

    Field

    Type

    Description

    count

    Int

    Number of vehicles in the area

    vehicles

    List<Object>

    Information about vehicles in the area

  • vehicles parameters

    Field

    Type

    Description

    bounding_box

    Object

    Coordinates of a bounding box

  • 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