They must be scanning faces though a database then. Usually the faces are blurred out so Google must be scanning and identify all the people they see on street view for whatever reason
[1] https://www.theguardian.com/world/2022/jan/05/italian-mafia-...