<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Igor Manjencic</title>
    <description>The latest articles on DEV Community by Igor Manjencic (@igor_manjeni_b754eb31e4).</description>
    <link>https://dev.to/igor_manjeni_b754eb31e4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4241800%2F2ae79a2a-b4ab-4877-a06f-841a17154fae.jpg</url>
      <title>DEV Community: Igor Manjencic</title>
      <link>https://dev.to/igor_manjeni_b754eb31e4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/igor_manjeni_b754eb31e4"/>
    <language>en</language>
    <item>
      <title>I Used YOLO11 to Analyze Border Traffic. Tracking a Single Car Was the Hard Part</title>
      <dc:creator>Igor Manjencic</dc:creator>
      <pubDate>Sat, 14 Nov 2026 08:05:25 +0000</pubDate>
      <link>https://dev.to/igor_manjeni_b754eb31e4/i-used-yolo11-to-analyze-border-traffic-tracking-a-single-car-was-the-hard-part-d48</link>
      <guid>https://dev.to/igor_manjeni_b754eb31e4/i-used-yolo11-to-analyze-border-traffic-tracking-a-single-car-was-the-hard-part-d48</guid>
      <description>&lt;p&gt;&lt;strong&gt;Tags:&lt;/strong&gt; #python #machinelearning #computervision #programming&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;The idea was to use YOLO11 to detect cars, trucks, and buses in publicly available camera images.&lt;/p&gt;

&lt;p&gt;And it worked.&lt;/p&gt;

&lt;p&gt;The model could recognize vehicles, draw bounding boxes, and count cars inside a defined traffic area.&lt;/p&gt;

&lt;p&gt;But counting cars doesn't tell you how long someone will wait.&lt;/p&gt;

&lt;p&gt;What I really wanted was something more interesting: &lt;strong&gt;identify a particular car in the queue, track its movement between camera snapshots, and estimate when it would reach the border checkpoint.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's where things got complicated.&lt;/p&gt;

&lt;p&gt;I explored this while building &lt;a href="https://nagranici.com/?lang=en" rel="noopener noreferrer"&gt;Na granici&lt;/a&gt;, a website that combines computer vision and historical observations to estimate waiting times at border crossings.&lt;/p&gt;

&lt;p&gt;Here's what I learned.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cameras weren't mine
&lt;/h2&gt;

&lt;p&gt;This was the first important constraint.&lt;/p&gt;

&lt;p&gt;I wasn't installing my own cameras or controlling a video stream.&lt;/p&gt;

&lt;p&gt;The system uses camera images published on official websites covering border crossings.&lt;/p&gt;

&lt;p&gt;That means I can't simply reposition a camera, change its angle, increase its resolution, or decide how frequently the source image updates.&lt;/p&gt;

&lt;p&gt;Some cameras show long queues from useful angles.&lt;/p&gt;

&lt;p&gt;Others show only a small section of the road.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqczhnzys2w42k9n16qne.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqczhnzys2w42k9n16qne.png" alt="detected vehicle" width="800" height="560"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some images are affected by darkness, headlights, reflections, or poor weather.&lt;/p&gt;

&lt;p&gt;And sometimes vehicles are so far away that they occupy only a handful of pixels.&lt;/p&gt;

&lt;p&gt;In other words, I had to work with whatever images were available.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The challenge wasn't creating an ideal computer vision environment. It was extracting useful information from an environment I couldn't control.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Starting with YOLO11
&lt;/h2&gt;

&lt;p&gt;For object detection, I used &lt;a href="https://docs.ultralytics.com/models/yolo11/" rel="noopener noreferrer"&gt;YOLO11 from Ultralytics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;YOLO (You Only Look Once) is a family of object detection models that can recognize and locate multiple objects within an image.&lt;/p&gt;

&lt;p&gt;For each detected vehicle, it returns a class, confidence score, and bounding box.&lt;/p&gt;

&lt;p&gt;I focused on four vehicle categories:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cars&lt;/li&gt;
&lt;li&gt;Motorcycles&lt;/li&gt;
&lt;li&gt;Buses&lt;/li&gt;
&lt;li&gt;Trucks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The regular analysis uses the smaller &lt;code&gt;yolo11s.pt&lt;/code&gt; model. I also supported &lt;code&gt;yolo11x.pt&lt;/code&gt; for more computationally demanding analyses and comparisons.&lt;/p&gt;

&lt;p&gt;Here's a simplified example of the detection configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;ultralytics&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="no"&gt;YOLO&lt;/span&gt;

&lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;YOLO&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"yolo11s.pt"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;results&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;predict&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;source&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"border_camera.jpg"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;conf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;iou&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.35&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;classes&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;7&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;results&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;boxes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;vehicle_type&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;result&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;names&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cls&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="n"&gt;confidence&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;conf&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;coordinates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;xyxy&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tolist&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

        &lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;vehicle_type&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;confidence&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;coordinates&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The class IDs correspond to vehicles in the pretrained COCO model.&lt;/p&gt;

&lt;p&gt;The confidence threshold is intentionally relatively low.&lt;/p&gt;

&lt;p&gt;Distant vehicles can be difficult to detect, and a higher threshold might exclude them.&lt;/p&gt;

&lt;p&gt;But lowering the threshold introduces another problem: more false positives.&lt;/p&gt;

&lt;p&gt;A road sign, reflection, or partially visible object might be incorrectly classified as a vehicle.&lt;/p&gt;

&lt;p&gt;The solution wasn't simply changing the threshold.&lt;/p&gt;

&lt;p&gt;I needed additional image processing and filtering.&lt;/p&gt;

&lt;h2&gt;
  
  
  Detecting vehicles isn't the same as detecting a queue
&lt;/h2&gt;

&lt;p&gt;Imagine a border camera showing 40 vehicles.&lt;/p&gt;

&lt;p&gt;Some are waiting to enter the country.&lt;/p&gt;

&lt;p&gt;Others are travelling in the opposite direction.&lt;/p&gt;

&lt;p&gt;A few might be parked near the checkpoint.&lt;/p&gt;

&lt;p&gt;YOLO doesn't know which vehicles are relevant to the waiting-time calculation.&lt;/p&gt;

&lt;p&gt;It simply detects objects.&lt;/p&gt;

&lt;p&gt;To address this, I used a &lt;strong&gt;Region of Interest (ROI)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;An ROI is a polygon defining the area of the image where vehicles should be counted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyw7awxxao50dbookepqs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyw7awxxao50dbookepqs.png" alt="detected vehicle" width="800" height="455"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using OpenCV, we can determine whether a detected vehicle belongs to the configured region.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;cv2&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="n"&gt;roi&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;900&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;200&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;850&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;700&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;150&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;700&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;int32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;inside_roi&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;cv2&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;pointPolygonTest&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;roi&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;float&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="kc"&gt;False&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is a simplified point-in-polygon example; a full implementation must also define how a vehicle's bounding box is associated with the ROI.&lt;/p&gt;

&lt;p&gt;The concept is similar to &lt;a href="https://docs.ultralytics.com/guides/region-counting/" rel="noopener noreferrer"&gt;Ultralytics Region Counting&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The difficulty is that every camera has a different perspective.&lt;/p&gt;

&lt;p&gt;A polygon that works perfectly for one border crossing might be completely useless for another.&lt;/p&gt;

&lt;p&gt;And since I don't control the cameras, I must adapt the analysis to their existing geometry.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment I really wanted: tracking one car
&lt;/h2&gt;

&lt;p&gt;Counting vehicles was useful, but I wanted to go further.&lt;/p&gt;

&lt;p&gt;Consider a border crossing with a visible queue.&lt;/p&gt;

&lt;p&gt;At 12:00, a particular car is near the back.&lt;/p&gt;

&lt;p&gt;At 12:01, it has moved forward.&lt;/p&gt;

&lt;p&gt;At 12:02, it moves again.&lt;/p&gt;

&lt;p&gt;If I could reliably recognize the same car across multiple observations, I could estimate its progression through the queue.&lt;/p&gt;

&lt;p&gt;Eventually, I might be able to estimate when that vehicle would reach the checkpoint.&lt;/p&gt;

&lt;p&gt;That would provide a more meaningful signal than simply counting cars.&lt;/p&gt;

&lt;p&gt;But how do you recognize the same vehicle across different images?&lt;/p&gt;

&lt;h3&gt;
  
  
  YOLO doesn't solve vehicle identity
&lt;/h3&gt;

&lt;p&gt;YOLO can detect a car in an image.&lt;/p&gt;

&lt;p&gt;But when the next image arrives, it doesn't automatically know whether a detected car is the same one.&lt;/p&gt;

&lt;p&gt;There are tracking approaches such as &lt;a href="https://docs.ultralytics.com/modes/track/" rel="noopener noreferrer"&gt;ByteTrack and BoT-SORT, supported by Ultralytics&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;These are useful for associating detections across consecutive video frames.&lt;/p&gt;

&lt;p&gt;However, my situation was different.&lt;/p&gt;

&lt;p&gt;I wasn't processing continuous video.&lt;/p&gt;

&lt;p&gt;I was working with periodically retrieved camera images.&lt;/p&gt;

&lt;p&gt;Between two snapshots, vehicles might move significantly, become obscured, or disappear from the visible region.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjwut28wl0icu18swkizv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjwut28wl0icu18swkizv.png" alt="detected vehicle" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A tracker designed for sequential video frames can't simply be assumed to work equally well with sparse snapshots.&lt;/p&gt;

&lt;h3&gt;
  
  
  Experimenting with feature matching
&lt;/h3&gt;

&lt;p&gt;I explored classical computer vision techniques to investigate movement between images.&lt;/p&gt;

&lt;p&gt;These included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;SIFT feature extraction.&lt;/li&gt;
&lt;li&gt;Descriptor matching.&lt;/li&gt;
&lt;li&gt;RANSAC geometric verification.&lt;/li&gt;
&lt;li&gt;Colour histogram comparisons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://docs.opencv.org/4.x/d7/dff/tutorial_feature_homography.html" rel="noopener noreferrer"&gt;OpenCV feature matching documentation&lt;/a&gt; describes how distinctive features can be matched between images and how RANSAC can reject geometrically inconsistent matches.&lt;/p&gt;

&lt;p&gt;These methods can provide evidence that particular visual features moved between observations.&lt;/p&gt;

&lt;p&gt;But they don't guarantee persistent vehicle identity.&lt;/p&gt;

&lt;p&gt;Consider five nearly identical white cars.&lt;/p&gt;

&lt;p&gt;One moves forward.&lt;/p&gt;

&lt;p&gt;Another disappears behind a truck.&lt;/p&gt;

&lt;p&gt;A third becomes visible.&lt;/p&gt;

&lt;p&gt;Which car is which?&lt;/p&gt;

&lt;p&gt;Even with additional visual features, the answer can be uncertain.&lt;/p&gt;

&lt;p&gt;That uncertainty becomes more significant as the time between snapshots increases.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I wanted to analyze every camera once per minute
&lt;/h2&gt;

&lt;p&gt;For tracking individual cars, I wanted much more frequent observations.&lt;/p&gt;

&lt;p&gt;Ideally, the system would retrieve a fresh image and analyze each camera approximately once per minute.&lt;/p&gt;

&lt;p&gt;That would give the movement analysis more opportunities to associate vehicles between observations.&lt;/p&gt;

&lt;p&gt;Of course, this would only help if the official camera source actually provided a new image that frequently.&lt;/p&gt;

&lt;p&gt;Fetching the same unchanged image repeatedly wouldn't improve tracking.&lt;/p&gt;

&lt;p&gt;But there was another problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I had approximately 60 cameras to analyze, and my server couldn't process all of them every minute.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Each analysis involves more than downloading an image.&lt;/p&gt;

&lt;p&gt;The processing pipeline can include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Retrieving the image from the camera source.&lt;/li&gt;
&lt;li&gt;Decoding and preparing it.&lt;/li&gt;
&lt;li&gt;Applying image processing and configured crops.&lt;/li&gt;
&lt;li&gt;Running YOLO11 inference.&lt;/li&gt;
&lt;li&gt;Filtering detections by region.&lt;/li&gt;
&lt;li&gt;Comparing results with previous observations.&lt;/li&gt;
&lt;li&gt;Updating queue statistics and estimates.&lt;/li&gt;
&lt;li&gt;Storing the results.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Running this pipeline for 60 cameras every minute would require completing approximately one full camera analysis per second on average.&lt;/p&gt;

&lt;p&gt;And that's before accounting for temporary failures, additional processing, or more expensive model comparisons.&lt;/p&gt;

&lt;p&gt;The server simply didn't have enough computational capacity for the frequency I wanted.&lt;/p&gt;

&lt;h3&gt;
  
  
  Smaller models help, but don't solve everything
&lt;/h3&gt;

&lt;p&gt;Using &lt;code&gt;yolo11s.pt&lt;/code&gt; instead of &lt;code&gt;yolo11x.pt&lt;/code&gt; reduces computational requirements.&lt;/p&gt;

&lt;p&gt;But increasing detection frequency also increases the cost of image processing, movement analysis, and storage operations.&lt;/p&gt;

&lt;p&gt;There are several possible optimizations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prioritize cameras with visible queues.&lt;/li&gt;
&lt;li&gt;Skip expensive inference when images haven't changed.&lt;/li&gt;
&lt;li&gt;Analyze selected image regions rather than unnecessary background areas.&lt;/li&gt;
&lt;li&gt;Use lightweight models for routine detection.&lt;/li&gt;
&lt;li&gt;Perform more expensive analysis only when needed.&lt;/li&gt;
&lt;li&gt;Process cameras asynchronously with a controlled worker queue.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These approaches could reduce the computational burden.&lt;/p&gt;

&lt;p&gt;But there is still a tradeoff.&lt;/p&gt;

&lt;p&gt;Analyzing fewer snapshots saves resources while making reliable vehicle association more difficult.&lt;/p&gt;

&lt;p&gt;And even a much faster server couldn't force an official camera to provide more frequent images.&lt;/p&gt;

&lt;h2&gt;
  
  
  From vehicle counts to waiting times
&lt;/h2&gt;

&lt;p&gt;Because reliable individual-car tracking wasn't available across all cameras, the waiting-time calculation needed another approach.&lt;/p&gt;

&lt;p&gt;The simplest relationship is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Estimated waiting time = Vehicles ahead / Estimated processing rate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For example, if a queue contains 30 cars and the checkpoint processes two cars per minute, those 30 cars represent approximately 15 minutes of processing.&lt;/p&gt;

&lt;p&gt;But the processing rate isn't known from a single image.&lt;/p&gt;

&lt;p&gt;It has to be estimated.&lt;/p&gt;

&lt;p&gt;The application can investigate evidence such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changes in detected vehicle counts.&lt;/li&gt;
&lt;li&gt;Supported movement between snapshots.&lt;/li&gt;
&lt;li&gt;Historical observations.&lt;/li&gt;
&lt;li&gt;Queue clearing events.&lt;/li&gt;
&lt;li&gt;Previous estimated conditions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The problem is that a decrease in detected cars doesn't necessarily mean those cars crossed the border.&lt;/p&gt;

&lt;p&gt;They might have become hidden.&lt;/p&gt;

&lt;p&gt;The detector might have missed them.&lt;/p&gt;

&lt;p&gt;Or they might have left the camera's field of view.&lt;/p&gt;

&lt;p&gt;That's why the system must distinguish between direct observations and assumptions.&lt;/p&gt;

&lt;p&gt;A waiting-time estimate based on weak evidence shouldn't be presented with the same confidence as one supported by consistent observations.&lt;/p&gt;

&lt;h2&gt;
  
  
  Historical patterns can help
&lt;/h2&gt;

&lt;p&gt;I also explored statistical forecasting based on previous observations.&lt;/p&gt;

&lt;p&gt;The idea was to estimate future conditions using historical records near the requested time.&lt;/p&gt;

&lt;p&gt;For example, traffic patterns on a Friday afternoon might differ from those on a Tuesday morning.&lt;/p&gt;

&lt;p&gt;The forecasting process separates weekday and weekend patterns, selects relevant historical observations, and calculates daily medians.&lt;/p&gt;

&lt;p&gt;When enough qualifying observations exist, historical information can be combined with the current estimate.&lt;/p&gt;

&lt;p&gt;This is a separate problem from object detection.&lt;/p&gt;

&lt;p&gt;YOLO11 tells us which vehicles appear in an image.&lt;/p&gt;

&lt;p&gt;The statistical model helps estimate what conditions might look like later.&lt;/p&gt;

&lt;p&gt;Neither method independently guarantees the actual waiting time.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned about real-world computer vision
&lt;/h2&gt;

&lt;p&gt;The biggest lesson was that detecting objects is often the easiest part of building a useful computer vision application.&lt;/p&gt;

&lt;p&gt;YOLO11 can identify vehicles in images remarkably well under suitable conditions.&lt;/p&gt;

&lt;p&gt;But the real-world application has to deal with much more:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limited camera access.&lt;/strong&gt; I couldn't control the official cameras, their positions, or their image updates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unreliable visual conditions.&lt;/strong&gt; Darkness, glare, compression, and distant vehicles reduced detection reliability.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ambiguous movement.&lt;/strong&gt; Two similar vehicles appearing in different snapshots don't necessarily represent the same vehicle.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Computational limits.&lt;/strong&gt; Processing approximately 60 cameras every minute was beyond what my server could sustain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Uncertain waiting times.&lt;/strong&gt; Counting vehicles doesn't reveal how quickly a border checkpoint is processing traffic.&lt;/p&gt;

&lt;p&gt;And perhaps most importantly, improving one component doesn't necessarily improve the final result.&lt;/p&gt;

&lt;p&gt;A more accurate detector won't solve the absence of fresh images.&lt;/p&gt;

&lt;p&gt;A faster server won't solve poor camera visibility.&lt;/p&gt;

&lt;p&gt;And a sophisticated tracking algorithm won't guarantee vehicle identity when the observations are too far apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would I try next?
&lt;/h2&gt;

&lt;p&gt;If I continued working on individual-vehicle tracking, I would start by selecting a small number of cameras with the most suitable viewing angles.&lt;/p&gt;

&lt;p&gt;I would first measure how frequently their source images actually change.&lt;/p&gt;

&lt;p&gt;Then I would test vehicle association on those cameras rather than attempting to track cars across all 60.&lt;/p&gt;

&lt;p&gt;A practical approach might combine object detection, visual appearance features, geometric constraints, and queue-position changes.&lt;/p&gt;

&lt;p&gt;I would also compare the results against manually verified vehicle movements.&lt;/p&gt;

&lt;p&gt;Only after establishing that the method works reliably on a smaller dataset would it make sense to expand the analysis.&lt;/p&gt;

&lt;p&gt;And if exact vehicle tracking proves too unreliable, estimating aggregate queue movement might be a better use of the available images.&lt;/p&gt;

&lt;p&gt;Because ultimately, the goal isn't to track cars for the sake of tracking them.&lt;/p&gt;

&lt;p&gt;It's to provide useful waiting-time information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;I started with a simple question:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Can YOLO count the vehicles waiting at a border crossing?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The answer was yes, with limitations.&lt;/p&gt;

&lt;p&gt;But the more interesting question became:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Can I recognize a particular vehicle, follow its progress through the queue, and predict when it will reach the checkpoint?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;That's a much harder problem.&lt;/p&gt;

&lt;p&gt;It combines object detection, feature matching, temporal analysis, computational optimization, and statistical forecasting.&lt;/p&gt;

&lt;p&gt;And when you're using cameras you don't control, every one of those problems becomes more complicated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The neural network was only one part of the system. The real challenge was turning imperfect, occasional observations into information people could actually use.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Have you worked with object tracking from periodic snapshots rather than continuous video? I'd be interested in how you handled object identity, especially with similar-looking vehicles and limited processing resources.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>python</category>
    </item>
    <item>
      <title>The Most Recommended AI Coding Tool Isn't Necessarily the Most Used</title>
      <dc:creator>Igor Manjencic</dc:creator>
      <pubDate>Thu, 12 Nov 2026 21:46:41 +0000</pubDate>
      <link>https://dev.to/igor_manjeni_b754eb31e4/the-most-recommended-ai-coding-tool-isnt-necessarily-the-most-used-mm5</link>
      <guid>https://dev.to/igor_manjeni_b754eb31e4/the-most-recommended-ai-coding-tool-isnt-necessarily-the-most-used-mm5</guid>
      <description>&lt;p&gt;&lt;em&gt;Tags: #ai #programming #softwareengineering #productivity&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Ask an AI assistant which coding tool you should use, and you'll probably get a confident shortlist. Cursor. Claude Code. GitHub Copilot. Codex. Maybe Lovable or Bolt if you're building an app from scratch.&lt;/p&gt;

&lt;p&gt;But there's a question I don't think we ask often enough: &lt;strong&gt;Are these the tools developers actually use, or just the tools AI assistants have learned to recommend?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Those sound like the same thing. The data suggests they're not.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools developers use
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://survey.stackoverflow.co/2026/ai/data" rel="noopener noreferrer"&gt;2026 Stack Overflow Developer Survey&lt;/a&gt; gives us a useful starting point. Among respondents to its question about which coding agents or assistants they'd used in the past year:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code:&lt;/strong&gt; 65.5%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Copilot:&lt;/strong&gt; 58.7%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI Codex:&lt;/strong&gt; 29.5%&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor:&lt;/strong&gt; 25.5%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are self-reported usage figures from 12,255 respondents to that question, not market shares. People could select more than one tool.&lt;/p&gt;

&lt;p&gt;The bigger picture is hard to miss: AI coding assistants have moved into everyday development. The same survey found that 73% of respondents who use coding assistants use them daily.&lt;/p&gt;

&lt;p&gt;That tells us what developers say they've tried or adopted. It doesn't tell us what happens when someone asks an AI assistant which tool to choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tools AI assistants recommend
&lt;/h2&gt;

&lt;p&gt;A different view comes from &lt;a href="https://narrashift.ai/directory/ai-and-machine-learning/ai-coding-vibe-coding" rel="noopener noreferrer"&gt;Narrashift's AI Coding &amp;amp; Vibe Coding directory&lt;/a&gt;, which tracks brands appearing in answers to product-neutral questions about coding tools.&lt;/p&gt;

&lt;p&gt;In its current snapshot of &lt;strong&gt;80 AI answers&lt;/strong&gt;, the share-of-voice ranking looks different:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;AI share of voice&lt;/th&gt;
&lt;th&gt;Mentioned in answers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;11.4%&lt;/td&gt;
&lt;td&gt;68.8%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;10.8%&lt;/td&gt;
&lt;td&gt;65.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI Codex&lt;/td&gt;
&lt;td&gt;8.5%&lt;/td&gt;
&lt;td&gt;51.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GitHub Copilot&lt;/td&gt;
&lt;td&gt;7.9%&lt;/td&gt;
&lt;td&gt;47.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Cursor leads this particular share-of-voice ranking, even though it trails Claude Code and Copilot in the Stack Overflow usage figures.&lt;/p&gt;

&lt;p&gt;Here's another wrinkle: &lt;em&gt;being mentioned&lt;/em&gt; and &lt;em&gt;being recommended&lt;/em&gt; are different things. In that same Narrashift snapshot, Claude Code is explicitly recommended in 45% of answers, compared with 40% for Cursor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An AI answer can mention a brand without endorsing it. And a recommendation isn't evidence that the tool will work well in your repository.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A caveat matters here: 80 answers is a small, prompt-dependent sample, not a representative study of all AI searches. The Stack Overflow survey and the AI-answer ranking also use different populations and methods. You can't use these numbers to calculate a conversion rate, or declare one tool the overall winner.&lt;/p&gt;

&lt;p&gt;What you &lt;em&gt;can&lt;/em&gt; see is that usage and AI visibility measure different things.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the question changes the recommendation
&lt;/h2&gt;

&lt;p&gt;Consider three developers asking for help:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I want AI suggestions inside the editor I already use."&lt;/p&gt;

&lt;p&gt;"I need an agent to understand and modify a large existing codebase."&lt;/p&gt;

&lt;p&gt;"I don't code, but I want to launch an MVP with authentication and a database."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;They are all searching for an “AI coding tool.” They aren't looking for the same product.&lt;/p&gt;

&lt;p&gt;The first developer cares about editor integration and interruptions to an existing workflow. The second cares about repository context, tests, diffs and tool permissions. The third may care more about hosting, a visual preview and how much infrastructure is handled automatically.&lt;/p&gt;

&lt;p&gt;This is where recommendation lists get slippery. A tool can be excellent at turning a prompt into a polished demo and still be a poor fit for maintaining a ten-year-old backend.&lt;/p&gt;

&lt;p&gt;Even within one product, the distinction between inline assistance and autonomous agents matters. &lt;a href="https://docs.github.com/en/copilot/get-started/about-github-copilot" rel="noopener noreferrer"&gt;GitHub's Copilot documentation&lt;/a&gt; describes both suggestions that developers review and agents that can inspect repositories, edit files and prepare work for review. “AI coding assistant” now covers several very different workflows.&lt;/p&gt;

&lt;h2&gt;
  
  
  The demo is not the benchmark
&lt;/h2&gt;

&lt;p&gt;If I were evaluating these tools for a real project, I wouldn't start by asking which generated the prettiest landing page.&lt;/p&gt;

&lt;p&gt;I'd give each one the same three tasks:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A small, well-defined change.&lt;/strong&gt; Add a feature to an existing endpoint without breaking its tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A messy repository task.&lt;/strong&gt; Trace a bug across several files, propose a fix and explain the tradeoffs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A follow-up change.&lt;/strong&gt; Modify the feature again after the first implementation, preserving existing behavior.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then I'd look at more than whether the code runs: how much review was needed, what changed outside the requested scope, how many regressions appeared, and whether I could understand the result six months later.&lt;/p&gt;

&lt;p&gt;And I'd keep security in the evaluation. The &lt;a href="https://cheatsheetseries.owasp.org/cheatsheets/Secure_Coding_with_AI_Cheat_Sheet.html" rel="noopener noreferrer"&gt;OWASP Secure Coding with AI Cheat Sheet&lt;/a&gt; discusses the extra risks when coding agents can execute commands, install packages and access sensitive resources. A successful demo doesn't tell you whether those permissions were appropriate.&lt;/p&gt;

&lt;p&gt;That's consistent with a finding from the &lt;a href="https://survey.stackoverflow.co/2026/ai/data/ai-trust" rel="noopener noreferrer"&gt;Stack Overflow survey's AI trust data&lt;/a&gt;: 48% of respondents said they trust AI output when they can easily verify it. Only 6.6% said they trust it for many tasks including important work decisions.&lt;/p&gt;

&lt;p&gt;Verification isn't a minor detail. It's part of the job.&lt;/p&gt;

&lt;h2&gt;
  
  
  A new discovery problem for developer tools
&lt;/h2&gt;

&lt;p&gt;There's also a consequence for the companies building these products.&lt;/p&gt;

&lt;p&gt;For years, developer-tool discovery happened through search engines, GitHub repositories, colleagues, conferences and documentation. Those channels still matter. But now a developer can ask an assistant for a shortlist and never open a traditional search results page.&lt;/p&gt;

&lt;p&gt;That creates a new question for tool makers: &lt;strong&gt;Does the assistant understand what your product is good at, and does it recommend you for the right kind of problem?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I'd be more interested in that than in simply counting brand mentions. If a model brings up an app builder in response to a question about enterprise monorepo refactoring, visibility alone hasn't helped the developer.&lt;/p&gt;

&lt;p&gt;The better measure would combine three things: whether the tool appears, whether it is actually recommended, and whether the recommendation matches the user's intent.&lt;/p&gt;

&lt;h2&gt;
  
  
  So which AI coding tool is best?
&lt;/h2&gt;

&lt;p&gt;I don't think there's a useful universal answer anymore.&lt;/p&gt;

&lt;p&gt;A developer shipping a quick prototype, a team maintaining a mature system and a company with strict security boundaries should probably evaluate different workflows, even if the same product names appear on all three shortlists.&lt;/p&gt;

&lt;p&gt;AI recommendations are a good way to discover options. Usage surveys tell us what people are trying. Neither replaces testing a tool against your own code and constraints.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The most visible tool isn't automatically the most used. The most used isn't automatically the best for your project. And the best demo isn't automatically the safest code to ship.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's the distinction worth keeping as AI coding tools become a normal part of software development.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;How do you pick a coding assistant today: recommendations from other developers, AI-generated shortlists, or testing several tools on the same repository?&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
      <category>softwareengineering</category>
    </item>
  </channel>
</rss>
