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

Vehicle 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": 75008,
    	"task_id": "a066974ae 7334649a37257242c5fa4c3",
    	"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
    			},
    			"vehicle_type": 0,
    			"tarpaulin_type": -1,
    			"license_plate_id": "XXXXXX",
    			"license_plate_type": 0,
    			"direction": 1
    		}]
    	}
    }
  • JSON format

    Field

    Type

    Description

    event_type

    Int

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

    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

    vehicle_type

    Int

    Type of detected vehicles:

    0: car

    1: dump truck

    2: trailer

    3: cement mixer

    4: sanitation vehicle

    5: crane

    6: pickup truck

    7: bus

    8: fuel tanker

    9: other

    tarpaulin_type

    Int

    Tarpaulin type of detected dump trucks:

    -1: non dump truck

    0: covered by a tarpaulin

    1: not covered by a tarpaulin

    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.

    detection_id

    String

    UUID of the reported vehicle. The ID is used to identify whether the alarm points to the same vehicle. You can configure multiple parking lines and departure lines. When a vehicle crosses a line, an alarm is reported. Note that the license plate may be blocked or blurred. As a result, this field may be inaccurate.

  • 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