In the UK if any action is causing distress to someone I think the police are allowed to stop you doing it (based on a naive reading). There are some pretty general laws on our statute books.
But it’s certainly true that the police can majorly inconvenience you. They can take your camera away and even though they have to give it back to you and are not allowed to delete anything that they can do that at all does suck. At least they cannot fine you or worse.
The most annoying thing is that many in the police seem to be unaware about the law. (They strangely never seem to have that problem when a law gives them more power.) They will lecture you on and on about personal rights even if those are irrelevant as long as you don’t plan to make the photos public. (And even if you, say, documented police brutality a newspaper could print the photo no problem, they would just have to pixelate faces.)