What you describe at the end has already happened in China. Municipalities (at least the large ones) routinely have cameras with facial recognition everywhere in public. The police has power to pull up this kind of information without warrants (it's China, so what do warrants even mean).