What prevents murder in areas where everyone has a gun?
Consequences.
The consequences of these glasses should be that in any private space, the offender either remove them, or remove themselves. Just like there are consequences to trying to hold up your phone in a way that looks like you are recording staff or other patrons in many private spaces.