Inspiration

Two in three new cars sold in Malaysia are a Perodua or a Proton (67% in the first half of 2026, per the Malaysian Automotive Association). Many of them look alike: the new Axia shares its front end with the Bezza, and the Bezza and Proton Saga are both small sedans. I wanted an app that could name them. But the best-known public car dataset, Stanford Cars, stops at 2012 models and has no Malaysian cars, so off-the-shelf models can't help.

What it does

Upload a photo, or a phone or dashcam video. A detector boxes every vehicle, and each car big enough to see is named with its make and model: 232 models from 29 makes, from Perodua and Proton to Toyota, Honda, and Chinese brands such as BYD, Chery and Haval.

It tries not to bluff:

  • When it is unsure of the model but sure of the brand, it shows the brand only.
  • When its top two guesses are close, it shows both (Perodua Bezza or Axia?) and asks you to check the badge.
  • Very small or distant cars are boxed but not named.

For videos, the page samples frames in the browser, follows each car from frame to frame, and gives it the name it got most often. You can download the clip with the labels burned in. The video itself is never uploaded, and photos are not stored.

How I built it

  1. Data. Over 46,000 images for 223 make-model classes from a public Google Images crawl on Hugging Face, plus Creative Commons photos from Wikimedia Commons and Openverse. A YOLO detector cropped each car; I then removed 293 wrong crops by hand.
  2. Model. CLIP ViT-B/16 image features with a logistic-regression head on top.
  3. Road data. Listing photos did not prepare the model for traffic, so I hand-labelled 219 cars (421 crops) from five Creative Commons dashcam drives in Penang, Gombak and on a KL highway.
  4. App. The models are exported to ONNX with float16 weights so they fit a Vercel Python function (FastAPI), with no PyTorch on the server. The page is plain HTML and JavaScript.

How well it works

All tests use photos never used for training:

Test Result
Wikimedia Commons photos of 12 common Malaysian models 81.0% named correctly
Openverse photos, mostly older generations 53.7%
51 cars in an unseen KL traffic-jam dashcam video 29 right (13 before adding road crops)

Challenges I ran into

  • Unlabelled noise. About one in six or seven crawl crops was the wrong car (my estimate from viewing samples, not a measured rate).
  • Look-alikes. Myvi vs Axia, Vios vs City and X70 vs X50 were the weakest pairs.
  • Server size. Fitting a 173 MB model into Vercel's function limit: 8-bit quantisation shrank it but dropped accuracy from 92% to 78–81%, so I kept float16 weights split into two files.
  • Unstable probabilities. The answer for a look-alike pair can flip when the same photo is resized. That is why close calls now show two names.

Accomplishments that I'm proud of

  • A live app that handles real dashcam video, not only clean photos.
  • More than doubling correct answers on an unseen road video with a few hundred hand-labelled crops.
  • Publishing the experiments that did not help, alongside the ones that did.

What I learned

  • Clean listing photos don't prepare a model for the road. Data that looks like the real use case matters more than more data.
  • Cleaning labels helped more than splitting classes. Making older generations separate classes lowered accuracy from 86.5% to 80.5%.
  • A probability is not an answer. Showing uncertainty honestly makes the app more useful, not less.

What's next

  • More photos for the weak pairs (Myvi/Axia, Vios/City, X70/X50).
  • Fine-tuning the CLIP backbone on a GPU (the Colab notebook is ready).
  • More models: the crawl covers 223 make-model classes, but many still have too few clean photos.

Tools, credits and AI use

  • Libraries: Ultralytics YOLO26 (AGPL-3.0), OpenCLIP (laion2b weights), scikit-learn, ONNX Runtime, FastAPI, Vercel, Google Colab.
  • Photos: test photos and the dashcam videos are Creative Commons, credited per file in the repo.
  • Crawl data: the training crawl states no licence, so its images are not redistributed.
  • AI assistance: AI coding assistants (Claude) helped write code, documentation and this video.
  • Event timing: all work was done between 15 and 25 Nov 2026, inside the submission period.

Links

Built With

Share this project:

Updates

Submission history