This is Part 3 of the Hawk Eye series. Part 1 covers depth post-processing in pure NumPy, and Part 2 covers passive rangefinding. "Hawk Eye" is the internal codename. The Gatekeeper and TWI detection layer described here is available on TyreCam AI (free scans are limited, and a free account unlocks more).
What TWI is
TWI stands for Tread Wear Indicator. These are small molded bridges at the bottom of the main tire grooves.
Their height is 1.6 mm (2/32 inch), which is the minimum legal tread depth in many regions. When the tread wears down to the bridge, the tire is at its limit.
For a photo-based depth estimate, a visible TWI gives us two things: a 1.6 mm reference point and a confidence signal . Finding these small marks in a photo automatically is the job of two trained neural networks. They are exported as ONNX models, a portable file format that runs without the training framework. This article explains how they work and why there are two.
Pipeline in one picture
Three terms appear in the picture.…