Buttons are old tech. https://www.flir.com/products/trafione/:
“The FLIR TrafiOne uses thermal imaging and Wi-Fi technology to adapt traffic signals based on the presence detection of vehicles, bicycles and pedestrians, even in total darkness or adverse weather.”
I don’t know how smart that version is, but there are versions that predict whether pedestrians have the intention to cross the street. https://www.tugraz.at/en/tu-graz/services/news-stories/tu-gr...:
“The innovative camera-based system recognises the intention of pedestrians to cross the road and switches to green automatically. What’s more, it optimises the traffic flow further, as Horst Possegger from the Institute of Computer Graphics and Vision explains by way of two examples: “The green phase can be extended in the case of large groups of persons, who require more time to cross the road. And if persons leave the waiting area before the lights have turned to green, this is also passed on to the lights. The traffic lights subsequently don’t switch to green and there are no unnecessary waiting times for motorised traffic.”
[…]
“Using the current configurations, our system signals that wish to cross three to four seconds before the button is pushed,” says Possegger.”