This chapter gave us the opportunity to scale down the complexity of our algorithms to support low-powered hardware. We also played with colorful lights, a homemade toy car, a puzzle of adapters, and a real car!
There is plenty of scope for extending the functionality of The Living Headlights. For example, we could take an average of multiple reference measurements or store different reference measurements for different colors of lights. We could analyze patterns of flashing, colored lights across multiple frames to judge whether the vehicle behind us is a police car or a road maintenance truck, or is even signaling to turn. We could try to detect the flash of rocket launchers, though testing might be problematic.
The next chapter's project is not something a driver should use, though! In the next chapter, we are going to take a pen-and-paper sketch in one hand and...