Read vehicle data

This page documents an earlier firmware release. Read this page for the latest release

Each traffic lane reports two kinds of data:

Data What it holds

State

The vehicles inside the lane right now, with position, size, speed, class and points. It is updated with every frame.

Event

One event for each vehicle when it leaves the lane, with its final class, speed, size and the points collected on its way through.

The WebGUI shows both in the Viewer: the state as vehicles moving through the lanes, the events in the Event history. How the sensor tracks the vehicles is explained in How traffic lanes track vehicles.

Watch the vehicles in the Viewer

  1. In the sidebar, click Eye Viewer.

    Each vehicle inside a lane is drawn as a blue point cloud. The points of a vehicle are collected while it drives through the lane, so long vehicles fill in as they come closer.

  2. Press B to draw a box around each vehicle. Press it again to hide the boxes.

  3. For a plan view of all lanes, click the Viewer button at the top right of the scene, then Camera > Top, see Change the view.

Viewer in 3D with a long yellow traffic lane zone and a vehicle drawn as a blue point cloud inside a blue box
Figure 1. A vehicle in a traffic lane, with its box

A vehicle leaves the picture as soon as it leaves its lane. It then appears in the event history.

Read the event history

The Event history on the right of the Viewer lists one entry for each vehicle that has left a lane, the newest first. It is shown when Event history is switched on in the detection settings, see Further settings.

Event history with entries for a truck, two cars, a van, another car and a motorbike, each with the time, the speed, the length and the height
Figure 2. Event history with several vehicles

Each entry shows:

Field What it shows

Title

The class of the vehicle, for example Car or Semi-trailer truck. See Classification.

Time

When the vehicle left the lane. Hover over it for the date and the time zone.

Velocity

The speed in km/h. A lightning bolt instead of the speedometer, with the tooltip Velocity, above what the lane expects, marks a vehicle more than about 3 % faster than the Expected Velocity of its lane.

Length

The length of the vehicle in m, next to a ruler.

Height

The height of the vehicle above the ground in m, next to an up and down arrow.

Rain, Fog

Shown when the weather disturbed the measurement. Rain means that the rain filter removed points of this vehicle.

The entry does not name the lane. To see the lane, show the vehicle in the point cloud.

Reading, pinning, loading older entries and exporting work for all events alike and are described in Review events.

Show a vehicle in the point cloud

  1. Move the mouse over an entry.

    The Viewer shows the vehicle as it left the lane: at the end of its lane, with all the points collected on its way through.

  2. Click the entry to pin it. Click it again, or Cross in the player bar, to return to the live view.

Viewer with the entry of a car highlighted in the Event history, the car drawn as a blue point cloud in a blue box at the near end of the yellow traffic lane zone, and the player bar below the scene
Figure 3. A pinned vehicle: the Viewer shows it as it left the lane

Replay a vehicle

  1. Click the entry to pin it.

  2. Click Play in the player bar below the scene, or press Space.

    The Viewer plays back the 10 seconds before and after the vehicle left the lane: the vehicle drives through the lane as recorded.

  3. Click Cross in the player bar to stop.

The player bar is described in more detail in Replay an event.

Use the replay to check a doubtful class, speed or length.

Count vehicles

Count the events, not the vehicles in the state. A vehicle is in the state for every frame it spends in the lane, but it raises exactly one event, when it leaves.

  • To count per lane, count the events by their zone_uuid, the lane they came from.

  • To count per class, count them by the class of the vehicle.

  • To count over a period, count them by their time.

The event history is meant for checking single vehicles, not for counting. Count with one of the ways below.

Get the data into your system

Way What it does How

Push over MQTT

The sensor sends every event to an MQTT broker on its own.

Choose the source EVENT, see Push data over MQTT.

Python API

A short script streams every vehicle that leaves a lane.

See Stream vehicles.

Blickfeld Flow

A flow on the sensor forwards the events over MQTT, REST, Websocket or Kafka, for example to a traffic management system.

See Build rules with Blickfeld Flow.

In the data, speed is given in m/s and sizes in m. Positions are given in the coordinate system of the lane, not of the sensor, and the position along the lane is that of the front of the vehicle. The messages are defined in the API reference: the traffic event, the traffic lane state and the vehicle.

Troubleshooting

Check a doubtful vehicle with its entry in the event history first: show it in the point cloud and replay it.

Symptom Cause What to check What to change

The counts are too high

The vehicles in the states are counted. A vehicle appears in the state of every frame it spends in the lane.

Whether your system counts the states or the events.

Count the events, see Count vehicles.

The counts are too high on neighbouring lanes

The zones of neighbouring lanes overlap.

The zones from above, with Camera > Top under the Viewer button at the top right of the scene.

Make each zone as wide as its lane, without overlap, see Lay out one zone per lane.

No vehicles are reported at all

The sensor does not run the traffic processing, because a volume zone is enabled. Or the vehicles drive through the zone in the wrong direction, or the zone is too small for the vehicles to fit into it.

The List of Zones, the direction of the zone, and its height in the 3D view.

Disable the volume zone. Turn the zone by 180° around z if the vehicles drive the other way, and let it stand on the ground, higher than the highest vehicle. See Place the zone along the lane.

Single vehicles are missing

The zone reaches further than the sensor sees, so the vehicle disappears before it leaves the zone. A vehicle on a lane close to the sensor can also hide one on a lane further out.

Where the field of view ends on the road, compared with the end of the zone near the sensor, and whether vehicles on the near lane hide the far lane.

Let the zone end where the field of view ends. Mount the sensor above the lanes to avoid hidden vehicles, see Choose the mounting.

Vehicles are reported too short

The end of the zone near the sensor lies before the end of the field of view, so the vehicles leave the zone before the sensor has seen all of them.

The end of the zone with the label, compared with where the field of view ends.

Move that end closer to the sensor, see Place the zone along the lane.

Vehicles are in the wrong class

The vehicle was reported too short, the rain filter removed some of its points, or the classification model was not confident about it, which gives Other.

The length of the entry and a Rain tag.

Correct the end of the zone as for vehicles reported too short. See Classification.

Every entry shows a lightning bolt

The Expected Velocity of the lane is lower than the speed of the traffic, or still 0 km/h.

The Expected Velocity under Tracking in the settings of the lane.

Set it to the usual speed on the lane, see Set the expected velocity.

The speed is off

The vehicle was seen in too few frames to estimate its speed: the traffic is fast and the zone is short, or the frame rate is low.

The length of the zone and the Target frame rate of the active scan pattern.

Make the zone as long as the field of view allows, and use the high frame rate of the traffic scan pattern, see Choose a scan pattern.