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

Peak Speeding 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": 75012,
    	"task_id": "a066974ae7334649a37257242c5fa4c3",
    	"stream_id": "03543400000000000101#1c471506397a48ecab0ba52360bdd430",
    	"timestamp": 1535546604,
    	"message_id": "0DD1BEA6-634B-11E8-8B0B-407D0FAD9218",
    	"image_base64": "/9j/4AAQSkZJRgABAJDA...",
    	"data": {
                 "vehicles": [{
                        "bounding_box": { 
                               "x": 858, 
                               "y": 200, 
                               "w": 679, 
                               "h": 535 
                         }
                         "speed":10,
                         "direction": 0
                      },
                      {
                          "bounding_box": { 
                              "x": 858, 
                              "y": 200, 
                              "w": 679, 
                              "h": 535 
                           }
                           "speed":10,
                           "direction": 0
                      }]
    	}
    }
  • JSON format

    Field

    Type

    Description

    event_type

    Int

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

    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

    vehicles

    List<Object>

    List of output vehicles

  • vehicles parameters

    Field

    Type

    Description

    bounding_box

    Object

    Coordinates of a bounding box

    speed

    Int

    Vehicle speed (unit: km/h)

    direction

    Int

    Vehicle direction.

    0: approaching. The vehicle head is captured.

    1: leaving. The vehicle rear is captured.

  • 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