Set up traffic lanes

A traffic lane is a zone that tracks and classifies the vehicles driving through it. You can create one traffic lane for each lane of the road in Configuration > Zone Management. For each vehicle that leaves a traffic lane, the sensor reports its class, speed, length and height, see Read vehicle data.

Before you start

  • The sensor is mounted as planned in Plan a traffic installation and aligned to the ground in Sensor Setup. Until then the Create Zone buttons are greyed out with Sensor setup not completed.

  • No security zone and no volume zone is enabled on the sensor. Traffic lanes cannot be combined with them, see One processing per sensor.

  • Event history is switched on in the detection settings, or the Viewer shows none.

Create a traffic lane

  1. In the sidebar, click Configuration > Zone Management.

  2. Under Create Zone, click Truck Traffic Lane. Its description reads Tracks and classifies vehicles in the specified area.

    A zone named Traffic Lane 1 is added to the List of Zones and its settings open on the right. It starts as a box of 1 × 1 × 1 m standing on the ground at the origin.

  3. Enter a name for the lane in the field at the top, for example Northbound right.

  4. Place the zone along the lane.

  5. Under Tracking, set the Expected Velocity.

  6. Click Apply.

  7. Repeat for every further lane. Each lane needs its own zone.

Create Zone with the mouse over the truck button, the description Traffic Lane, Tracks and classifies vehicles in the specified area below the buttons, and the List of Zones with Traffic Lane 1 selected
Figure 1. Zone Management with a traffic lane

Place the zone along the lane

The sensor looks along the road, and the vehicles drive towards it. Each zone should cover one lane, from as far away as the sensor sees vehicles up to the point where its field of view ends.

Top view of a long, narrow traffic lane zone over the point cloud of a road, with its label at the lower end, near the sensor
Figure 2. A traffic lane seen from above. The label marks the end near the sensor.
  1. Under Transformation, click Scale:

    • x: the width of the lane.

    • y: the length of the lane section the sensor sees, along the direction of travel.

    • z: higher than the highest vehicle, for example 4.5 m.

  2. Click Rotate and turn the zone around z until its long side follows the lane and its label is at the end closest to the sensor.

    The label of a zone sits at a bottom corner of one of its short ends. The vehicles must drive through the zone towards this end.

  3. Click Translate and move the zone over the lane. Let it stand on the ground.

  4. Let the end with the label stop where the field of view of the sensor ends on the road.

    A vehicle is reported when it leaves the zone at this end. If the zone ends earlier, the vehicle is reported before the sensor has seen all of it. If the zone reaches further than the sensor sees, the vehicle can disappear before it leaves the zone and is then not reported.

With a single lane, aim the sensor so that the centre of its field of view lies in the middle of the lane. With several lanes, place the zones side by side, one per lane.

The Translate sliders cover -25 to 25 m. Type larger values into the field next to them, for example a y of 30 m for a lane that starts far from the sensor. The axes follow the coordinate system.

Set the expected velocity

Setting What it does Default

Expected Velocity

Under Tracking. The speed at which vehicles usually drive on this lane, in km/h. The tracking starts every new vehicle with this speed until it has measured the real one. It does not limit the speeds that are measured. The event history marks every vehicle that drives more than about 3 % faster than this speed, see Read vehicle data.

0 km/h

In the API, the settings of a traffic lane are the message TrafficLane.

Traffic lane settings with the name Traffic Lane 1, Transformation Translate with x 0.98, y 30.54 and z 2.3, and Tracking with Expected Velocity 40 km/h
Figure 3. Settings of a traffic lane

Test the lanes

  1. In the sidebar, click Eye Viewer.

  2. Drive a vehicle through each lane, or wait for traffic.

    While the vehicle is in a lane, the Viewer shows its points in blue. Press B to draw a box around each vehicle.

  3. Check the Event history on the right. Each vehicle that leaves a lane adds exactly one entry with its class, speed, length and height.

  4. Click the entry to show the vehicle in the point cloud, and check that it is drawn in the right lane.

  5. Compare speed and size with what you know of the vehicle.

If one vehicle produces several entries, or none, see Troubleshooting in Read vehicle data.