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

Wrong-Way Driving 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": 75009,
    	"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
    			},
                          "license_plate_id": "XXXXXX",
                          "license_plate_type": 0,
                          "direction": 0
    		}]
    	}
    }
  • JSON format

    Field

    Type

    Description

    event_type

    Int

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

    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

    license_plate_id

    String

    License plate. When the license plate cannot be recognized, an empty string is output.

    license_plate_type

    Int

    Color of license plate. 0 indicates unknown, 1 indicates blue, 2 indicates yellow, 3 indicates green (new energy vehicle), 4 indicates white, and 5 indicates black. If the license plate cannot be recognized, the output is 0.

    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