Tags: #python #machinelearning #computervision #programming
I wanted to build something that sounds relatively simple: analyze border crossing cameras, count the vehicles waiting in line, and estimate how long drivers will have to wait.
The idea was to use YOLO11 to detect cars, trucks, and buses in publicly available camera images.
And it worked.
The model could recognize vehicles, draw bounding boxes, and count cars inside a defined traffic area.
But counting cars doesn't tell you how long someone will wait.
What I really wanted was something more interesting: identify a particular car in the queue, track its movement between camera snapshots, and estimate when it would reach the border checkpoint.
That's where things got complicated.
I explored this while building Na granici , a website that combines computer vision and historical observations to estimate waiting times at border crossings.
Here's what I learned.
The cameras weren't mine
This was the first important constraint.
I wasn't…