That will end up becoming an interesting court case, followed by a set of laws, followed by a court case, until such a thing is almost certainly illegal (in the United States), by pressure of societal desire alone.
One could do something similar with facial recognition software, but if someone tried to make a large business out of it, I'm sure there would be significant friction.