<?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: George</title>
    <description>The latest articles on DEV Community by George (@george_6838522ad9f01a1d33).</description>
    <link>https://dev.to/george_6838522ad9f01a1d33</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%2F4275213%2F87efdc84-719f-4d80-bfe3-2e1f5cb459bb.png</url>
      <title>DEV Community: George</title>
      <link>https://dev.to/george_6838522ad9f01a1d33</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/george_6838522ad9f01a1d33"/>
    <language>en</language>
    <item>
      <title>We measured tyre tread with a €1 coin. It worked, then it broke at 3am</title>
      <dc:creator>George</dc:creator>
      <pubDate>Tue, 01 Dec 2026 00:29:51 +0000</pubDate>
      <link>https://dev.to/george_6838522ad9f01a1d33/we-measured-tyre-tread-with-a-eu1-coin-it-worked-then-it-broke-at-3am-3hmj</link>
      <guid>https://dev.to/george_6838522ad9f01a1d33/we-measured-tyre-tread-with-a-eu1-coin-it-worked-then-it-broke-at-3am-3hmj</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/mlh-hackathon"&gt;MLH x DEV Writing Challenge&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Drop a €1 coin into a tyre groove and take a photo. The deeper the groove, the less of the coin you can see. That one idea became the core of &lt;strong&gt;Rodi Vision&lt;/strong&gt;, the app my team built in 24 hours at HackEPS 2026.&lt;/p&gt;

&lt;p&gt;The challenge came from Rodi Motor Services, a tyre and car service chain in Catalonia. When a car arrives at one of their workshops, someone still writes down the tyre size, DOT code and tread depth by hand, then walks around the car looking for scratches and dents. It's slow, it's easy to get wrong and the customer never sees any proof. Rodi asked for the whole check-in done with a phone camera in under 3 minutes per car.&lt;/p&gt;

&lt;p&gt;Rodi Vision is an Android app for the mechanic. The flow is plate, 4 wheels, summary, 360° video, send:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🚗 &lt;strong&gt;Plate:&lt;/strong&gt; photograph the number plate and the car's history loads&lt;/li&gt;
&lt;li&gt;🛞 &lt;strong&gt;Sidewall:&lt;/strong&gt; reads size, load index, speed rating, brand and the DOT code, which tells you how old the tyre is&lt;/li&gt;
&lt;li&gt;🪙 &lt;strong&gt;Tread depth:&lt;/strong&gt; a €1 coin in the groove, measured at the inner, centre and outer zones&lt;/li&gt;
&lt;li&gt;🎥 &lt;strong&gt;Body damage:&lt;/strong&gt; a 360° walkaround video, with every damage logged by zone, severity, timestamp and photo. At check-out the app only shows &lt;strong&gt;new&lt;/strong&gt; damage, so the workshop can prove a scratch was already there when the car came in&lt;/li&gt;
&lt;li&gt;📄 &lt;strong&gt;Report:&lt;/strong&gt; state of all 4 wheels, likely cause of wear, km left and a quote with the reasoning behind it, emailed straight to reception&lt;/li&gt;
&lt;li&gt;🗣️ &lt;strong&gt;Voice:&lt;/strong&gt; the app talks the mechanic through every step and takes voice commands, so their hands stay on the car&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  How the coin trick works
&lt;/h4&gt;

&lt;p&gt;Vision models are great at &lt;strong&gt;reading&lt;/strong&gt;. Plates, sidewall text and DOT codes are exactly their thing. But ask one how deep a groove is and you get a confident guess. &lt;strong&gt;Measuring&lt;/strong&gt; needs geometry and an object you know the real size of.&lt;/p&gt;

&lt;p&gt;A €1 coin is 23.25 mm across. Push it into the groove and part of it disappears below the tread surface. We fit a circle to the visible arc of the coin, which gives us its full diameter in pixels, then find the tread surface line. The hidden part of the coin is the groove depth:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;depth_mm = coin_diameter_mm × (1 − visible_height_px / coin_diameter_px)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the coin is the ruler, every photo gets its own scale and the distance from the camera doesn't matter. On synthetic test photos the error is about 0.1 mm once the coin is at least 120 px wide. The app also returns a check image with a red circle on the coin and a line on the tread surface. If either is in the wrong place, the mechanic retakes the photo or types in a gauge reading instead of trusting a wrong number.&lt;/p&gt;

&lt;h4&gt;
  
  
  AI only where it earns its place
&lt;/h4&gt;

&lt;p&gt;Three of the five parts of the pipeline don't use AI at all:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sidewall text is parsed against ETRTO tyre tables with plain rules&lt;/li&gt;
&lt;li&gt;The coin measurement is pure OpenCV and geometry&lt;/li&gt;
&lt;li&gt;The report is built from rules on the measurements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Gemini only steps in where reading is genuinely hard: the sidewall photo and the 360° damage video. That made the deterministic parts fast, testable and free to run.&lt;/p&gt;

&lt;h4&gt;
  
  
  Stack
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;App:&lt;/strong&gt; React, Vite and TypeScript, wrapped for Android with Capacitor. We built our own camera screen with pinch-to-zoom, a flashlight toggle and guided capture steps, because the default camera doesn't tell you what to photograph next.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; FastAPI in front of a Python engine split into layers (&lt;code&gt;presentation/&lt;/code&gt;, &lt;code&gt;business/&lt;/code&gt;, &lt;code&gt;persistence/&lt;/code&gt;). Every challenge level can run on its own through a grading script, for example &lt;code&gt;python grade.py --level 3 --input tread_photos/ --out out/l3&lt;/code&gt;, which returns one JSON result per item.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data:&lt;/strong&gt; PostgreSQL with TimescaleDB on Tiger Data for the tread history.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  My part
&lt;/h4&gt;

&lt;p&gt;I built levels 1 to 3 of the engine: the sidewall text parser, reading the sidewall from a photo and the coin tread measurement. I also built the whole voice system, both the ElevenLabs guidance and the voice commands. Those were the foundations, and the rest of the pipeline was built on top of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Here's one wheel being checked on a real phone (sped up slightly). The guided camera frames the sidewall, and the hint at the top reminds the mechanic they can just say &lt;em&gt;"foto"&lt;/em&gt;, &lt;em&gt;"repetir"&lt;/em&gt; or &lt;em&gt;"siguiente"&lt;/em&gt;. Then the coin goes into the inner, centre and outer grooves.&lt;/p&gt;

&lt;p&gt;🔊 Sound on. The phone's screen recorder doesn't capture app audio, so I laid the app's real ElevenLabs clips (the same mp3 files it ships with) over the recording at the steps where it plays them.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/sdyW39xNIRY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The guided capture tells you exactly where the coin goes:&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%2Fmnyyvzt65jtpisq1uicx.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%2Fmnyyvzt65jtpisq1uicx.png" alt="Guided coin capture with the voice command hint" width="392" height="850"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And this is the check image for the inner groove. The red circle is the coin fitted from its visible arc, the green line is the tread surface and the result is &lt;strong&gt;3.2 mm&lt;/strong&gt;. That's close to the 3 mm mark, so the app tags it "Planificar" (plan a tyre change), while the centre groove came out at 5.3 mm and "Correcto". It also flags blurry photos and asks you to retake them instead of measuring garbage.&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%2Fhvqdqx76v9yjh7vtsrxo.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%2Fhvqdqx76v9yjh7vtsrxo.png" alt="Coin check image: 3.2 mm on the inner groove" width="392" height="850"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🏆 Devpost: &lt;a href="https://devpost.com/software/rodi-vision-ed1vpk" rel="noopener noreferrer"&gt;https://devpost.com/software/rodi-vision-ed1vpk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💻 Code: &lt;a href="https://github.com/kyara13/Rodi-Challenge" rel="noopener noreferrer"&gt;https://github.com/kyara13/Rodi-Challenge&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Partner Technologies
&lt;/h2&gt;

&lt;h4&gt;
  
  
  ElevenLabs (we won MLH Best Use of ElevenLabs 🎉)
&lt;/h4&gt;

&lt;p&gt;A mechanic kneeling next to a tyre with greasy gloves on isn't going to read small text on a phone. So the app speaks. Every capture step has a spoken instruction, and after each groove photo it reads the result back, for example &lt;em&gt;"cinco coma dos milímetros"&lt;/em&gt;. The mechanic hears the number without looking at the screen.&lt;/p&gt;

&lt;p&gt;How we built it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One multilingual model.&lt;/strong&gt; We used &lt;code&gt;eleven_multilingual_v2&lt;/code&gt;, so one voice speaks Spanish, Catalan and English. Rodi's workshops are in Catalonia, which means Catalan isn't a nice extra, it's what a lot of the mechanics actually speak.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Generated once, shipped with the app.&lt;/strong&gt; Calling the API live for every instruction would add latency and burn credits on every demo run. Instead a small script turns every phrase into an mp3 once per language, and the files ship inside the app. Bonus: voice guidance works &lt;strong&gt;offline&lt;/strong&gt;, which matters in a garage with bad signal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every number is pre-generated too.&lt;/strong&gt; The tricky part of offline voice is reading back results you don't know in advance. Tread depth is measured to 0.1 mm and never goes above 10 mm, so there are only 101 possible readings. The script simply generates all of them, from &lt;em&gt;"cero milímetros"&lt;/em&gt; to &lt;em&gt;"diez milímetros"&lt;/em&gt;, plus the damage counts. That's 144 clips per language and 432 in total, and the app picks the right one by key:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;depth_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tenths&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="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""53 -&amp;gt; 'cinco coma tres milímetros'; 50 -&amp;gt; 'cinco milímetros'."""&lt;/span&gt;
    &lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="no"&gt;NUMBERS&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;WORDS&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="n"&gt;whole&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dec&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;divmod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tenths&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&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;f&lt;/span&gt;&lt;span class="s2"&gt;"{n[whole]} {w['point']} {n[dec]} {w['mm']}"&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;dec&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"{n[whole]} {w['mm']}"&lt;/span&gt;

&lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"depth_{t}"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;depth_text&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t&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;t&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&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="mi"&gt;101&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="c1"&gt;# 0.0 to 10.0 mm&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# list the clips and the characters they cost&lt;/span&gt;
python -m scripts.make_voice --dry-run

&lt;span class="c"&gt;# generate the mp3s&lt;/span&gt;
python -m scripts.make_voice --langs es,ca,en
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A full language is about 3,900 characters, so adding one is a single command and costs almost nothing. Clips that already exist are skipped, so a run that fails halfway can just be started again.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It listens too.&lt;/strong&gt; For voice commands we used Android's built-in speech recogniser through a Capacitor plugin, so there's no extra API call. On the tyre camera you say &lt;em&gt;"foto"&lt;/em&gt;, &lt;em&gt;"repetir"&lt;/em&gt; or &lt;em&gt;"siguiente"&lt;/em&gt; (or &lt;em&gt;"photo"&lt;/em&gt;, &lt;em&gt;"repeat"&lt;/em&gt;, &lt;em&gt;"next"&lt;/em&gt;) and it takes the shot, goes back or moves on. The app stops listening while it's speaking, so it never hears itself.&lt;/li&gt;
&lt;li&gt;Voice can be turned off in Settings for anyone who'd rather read.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The honest limitation: a real workshop is loud. Compressors and impact guns can drown out a command. A wake word, noise cancellation or a headset mic are the obvious next steps.&lt;/p&gt;

&lt;h4&gt;
  
  
  Gemini API
&lt;/h4&gt;

&lt;p&gt;Gemini reads the sidewall photo and finds body damage in the 360° video. The model is set through an env variable with fallback models behind it, so a single rate limit can't take the whole demo down.&lt;/p&gt;

&lt;h4&gt;
  
  
  Tiger Data (TimescaleDB)
&lt;/h4&gt;

&lt;p&gt;Every groove measurement goes into a hypertable, &lt;code&gt;tread_readings&lt;/code&gt;, with a continuous aggregate &lt;code&gt;tire_daily&lt;/code&gt; on top. From that history the backend works out how fast each tyre is wearing and estimates the date it will hit 3 mm (time to recommend a change) and 1.6 mm (the legal limit). Two small rules keep the prediction honest: if a reading goes &lt;strong&gt;up&lt;/strong&gt; by more than 1 mm between visits, the tyre was replaced and the wear rate starts over, and with less than 30 days of history we don't predict anything. A workshop dashboard turns this into a list of customers to call before their tyres become a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hackathon Experience
&lt;/h2&gt;

&lt;p&gt;HackEPS 2026 was organised by LleidaHack at the Universitat de Lleida, and I teamed up with Kyara Gamarra, Eric Domínguez and Niko as &lt;strong&gt;Commit &amp;amp; Conquer&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The atmosphere was great. Food was free all weekend and there was an endless supply of Monsters and electrolyte drinks, which is basically what kept us going through the night. I met a lot of people from other teams, and the organisers also ran side challenges that had nothing to do with coding, which were a nice break when you'd been staring at the same bug for hours.&lt;/p&gt;

&lt;h4&gt;
  
  
  What broke at 3am
&lt;/h4&gt;

&lt;p&gt;The coin, which was my part. The irony is that it was one of the first things we got working. Early on it gave good readings and we moved on to the camera, the video analysis and the database.&lt;/p&gt;

&lt;p&gt;Then, somewhere along the way, it quietly stopped working. We kept changing the pipeline around it, and at some point the readings went wrong. We spent hours trying to fix it. Real photos have bad lighting, glare on the rubber and a surprising number of round things that OpenCV is happy to call a coin, so every fix seemed to break something else.&lt;/p&gt;

&lt;p&gt;At 3am it still didn't work. So we made the call: roll the coin measurement back to the older version we knew worked, and keep everything new we'd built on top of it. At the time it felt like giving up. Looking back, it was the best decision of the weekend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A feature that works beats a "better" one that doesn't&lt;/strong&gt;, especially a few hours before judging&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Commit the working version before you improve it.&lt;/strong&gt; We could only roll back because that version still existed&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test the old features every time you add a new one.&lt;/strong&gt; The coin broke silently because nobody re-checked it&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  What I'd do differently
&lt;/h4&gt;

&lt;p&gt;We didn't win the Rodi prize. The winning team showed accuracy numbers for every part of the challenge. We had a complete, working app but no evaluation table to back it up, even though our grading script could have produced one. Judges reward proof, and "we measured it" beats "we built it". Next time a small results table and a 60-second demo video go in before the deadline, not after.&lt;/p&gt;

&lt;p&gt;We still walked out with &lt;strong&gt;MLH Best Use of ElevenLabs&lt;/strong&gt; and a much better idea of how to ship under pressure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What's next:&lt;/strong&gt; measuring tread without a coin, handling workshop noise for voice commands and plugging into Rodi's workshop software.&lt;/p&gt;

&lt;p&gt;Thanks to LleidaHack and MLH for the weekend, to Rodi Motor Services for a real problem worth solving and to Kyara, Eric and Niko for not giving up at 3am.&lt;/p&gt;

</description>
      <category>mlhacks</category>
      <category>devchallenge</category>
      <category>hackathon</category>
      <category>computervision</category>
    </item>
  </channel>
</rss>
