This is something that the CIA actively engages in. It’s not quite at the covfefe level of “we meant to get caught,” but they do occasionally put out the word that they like it when they’re perceived as ham-fisted bunglers as it makes it easier to get away with stuff.
I believe that’s not the law though. The law outlines the conditions under which a person has an “expectation of privacy.” If you’re inside your house, you have an expectation of privacy and so should not be filmed. If you’re on the sidewalk in public, you have no expectation of privacy. If you’re in a private establishment (restaurant or store for instance), the owner or their representatives can ask you not to record and you have to comply.
All of street photography depends on this kind of legal framework.