The problem is when you think about actual non-stalkers.
I think this is a too rough, crude, gross, extreme, disproportionate and easy to abuse and misuse “solution” for that problem.
There are many overly narcissistic and self-centered people who are going to be thinking that anyone who walks in the same direction as they are necessarily an stalker, and then there is the issue of revenge, blackmail, hate crimes and so on that a person can commit with an application of that nature.