Let’s talk

Traffic Counting Software

  • #Analytics
  • #Object Detection

Computer vision traffic counting for a municipal transport authority. It turns existing intersection cameras into continuous counts of six vehicle and pedestrian classes, with detection at the edge so video never leaves the intersection.

  • Computer Vision
Intersection camera view with detection boxes, a drawn counting zone and counted vehicle classes

Impact

The client is a municipal transport authority with cameras at most intersections but no counts from them. Counting meant pneumatic tubes or a contractor with a clicker for four hours, so most intersections were never counted at all.

We built the computer vision layer, the data pipeline and the dashboard traffic engineers work from. It runs on existing IP cameras over RTSP and ONVIF, with detection in an edge box at each intersection; only counts travel upstream.

Services we provided

Computer Vision Model Training

Multi-Object Tracking

Edge Video Processing

Traffic Data Pipeline

Dashboard for Traffic Engineers

RTSP/ONVIF Camera Integration

QA and Count Validation

Tech Stack

Python

Pytorch

Yolo

Recorded intersection footage with labelled turning directions and counts by vehicle class
Results screen comparing manual and system counts per camera, with detection accuracy

Challenges and Solutions

🧐 Challenges

  • The cameras were installed for operators to watch, and angle, mounting height and resolution change from one intersection to the next.
  • The budget allowed no new cameras and no fiber to each intersection.
  • A bus waiting forty seconds at a stop inside the counting zone had to count as one vehicle, not two.
  • Planners need turning movement counts by approach, vehicle class and 15-minute interval, not raw detections.

πŸ’‘ Solutions

  • Multi-class detection counts cars, trucks, buses, bikes, motorcycles and pedestrians separately.
  • ByteTrack holds each vehicle as one object while it crosses the zone, so counts do not climb frame by frame.
  • Engineers draw counting zones and directional lines on the camera image itself.
  • Speed, dwell time and queue length come off the same tracks at no extra processing cost.
  • Counts are binned by class, movement and time at the edge, then shown in a dashboard with CSV export to planning tools.
  • Video is processed at the edge and not retained; no face or plate recognition runs anywhere.

Business value

  • 97–99% vehicle detection accuracy vs. manual ground truth, validated per camera.
  • 6+ object classes detected: cars, trucks, buses, bikes, motorcycles, pedestrians.
  • 8,760 hours of counts per intersection per year.
  • Marginal cost of a new count: zero; a tube survey ran €800–1,500 per site.
  • 6 months from pilot corridor to full-scale rollout.

User flow

1. The system connects to the camera already on the pole over RTSP or ONVIF.
2. An engineer draws counting zones and directional lines on the camera image.
3. The model detects and classifies vehicles and pedestrians, and the tracker keeps each one as a single object.
4. A count is logged when a tracked object crosses a line in the set direction, with queue and dwell events from the same tracks.
5. Counts are binned by class, movement and time interval at the edge and sent upstream.
6. Engineers review the numbers in the dashboard or export CSV into their planning tools.

This website uses cookies

We use cookies to personalize content and advertising, provide social networking features, and analyze our traffic. We also share information about your use of our website with our social media, advertising and analytics partners, who may combine it with other information you have provided to them or collected from your use of their services. You agree to our cookies if you continue to use our website.

Okay, I understand