Skip to content

VCC26: Live Traffic Sign Recognition

VCC26 was an in-class competition at Lawrence Tech in spring 2026: point a laptop webcam at traffic signs shown on a TV, and name each one as fast and as accurately as you can. I built my entry on my own and came in third. It finds the sign in the frame, runs it through an ensemble of three CNNs, and says the sign out loud once it is confident.

  • Type In-class competition, solo
  • Result Third place
  • School Lawrence Tech
  • When Spring 2026
  • Models EfficientNetV2-B0, B2, and MobileNetV3-Large
  • Ran on M1 MacBook, about 11.5 frames a second
  • Test set 736 of 740 right (99.46%)
  • Stack TensorFlow, Keras, Computer Vision, and Ensembles
A drawing of the VCC26 pipeline: a webcam watching signs on a TV finds each sign by contour detection, crops it to 224 by 224, and three CNNs classify it. Their averaged prediction is smoothed over frames, and a gate stays quiet under a confidence of 0.80 or when the label has not changed, and shows and speaks a new label at 0.80 or more. Beside it, the held-out test result: 736 of 740, 99.46 percent top-1 and 100 percent top-3, with all four misses being No Parking Left Arrow read as Double Arrow

A drawing of the pipeline and the test result, not a screenshot.

The Task

Signs were shown on a TV, and a webcam watched the screen. Each sign was scored on how many correct classifications the system made inside a 6 second window. So accuracy on a test set was only part of the job: how many frames I could classify each second, and when the system decided to speak, mattered just as much.

There were 25 classes, including a “none” class for when no sign is in view.

Three Networks, Averaged

I started from the VGG16 transfer learning model we had built in class, and replaced it with three ImageNet-pretrained networks from different families, so their mistakes would be less likely to line up: EfficientNetV2-B0, EfficientNetV2-B2 and MobileNetV3-Large, about 22 million parameters together. A heavier ConvNeXt was on my first list, and I dropped it because it would have cost too much speed on the laptop.

  • Two phases. Each network first trained only its new classification head, then the last part of the backbone was unfrozen and trained with a cosine learning rate schedule.
  • Balanced loss. Class-weighted cross entropy, so the rarer signs counted.
  • Hardware. Training ran on a server with two A100 GPUs, split across both with TensorFlow’s mirrored strategy.
  • The ensemble. The three networks’ softmax outputs are averaged into one prediction.

A Sign on a TV Is Not a Photo of a Sign

A webcam pointed at a TV sees something different from the clean images the models learned from. So I wrote a custom augmentation, TVDisplay, that adds vignetting, washed-out color, glare and a shift in color temperature. Mirror flips are in the mix too, with a table of which signs are mirror images of each other, so a flipped left arrow is labeled as a right arrow.

I then captured webcam images of the signs on a screen, added them to the training set and retrained. That step was about keeping predictions steady across lighting and distance, more than raising peak confidence.

Running It Live

Each webcam frame goes through the same steps: find the sign with contour detection, crop it square to 224 by 224, run the ensemble, smooth the prediction over recent frames with a moving average, and check it against a confidence gate before it reaches the screen and the speaker.

  • Speed. Wrapping each network in a compiled tf.function with a fixed input shape took the ensemble from about 1.8 to about 11.5 frames a second on an M1 MacBook. The networks on their own ran at 28 to 47. At 11.5, a 6 second window gives the system about 69 looks at each sign.
  • When to speak. It speaks only when the label changes and the confidence clears the gate, which I ran at about 0.80, and it never says “none”.

How It Did

On a held-out test set of 740 images, the ensemble got 736 right, 99.46%, and the right answer was in its top three every time. All four misses were the same pair: No Parking Left Arrow read as No Parking Double Arrow, two signs that differ only in the arrow. The other 24 classes were perfect.

Confidence separated right from wrong: correct answers averaged 0.990 and wrong ones 0.754, which is why a gate near 0.80 works. The test images are clean ones, so 99.46% is not a live accuracy figure, and I did not record one. In the competition itself, against the TV, the entry placed third in the class.

Questions About VCC26?

I am happy to talk through the training setup or the live pipeline. nathanpaulgamache@gmail.com

Ask me about it