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
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
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