I'm unsure if you were obliquely referring to this, or if you were intending to suggest a fictional idea. But what you described is already a thing that's happening in mainland China,
> "In the southern city of Shenzhen, Chinese authorities have launched a new surveillance system loaded with facial recognition, artificial intelligence, and a big database to crack down on jaywalking as well as other crimes."
> "As a result, photographs of pedestrians caught in the act, along with their names and social identification numbers, are now instantly displayed on LED screens installed at Shenzhen road junctions."
https://www.abc.net.au/news/2018-03-20/china-deploys-ai-came... ("Chinese authorities use facial recognition, public shaming to crack down on jaywalking, criminals")