As a german, I like that I don't have to potentially perform for some random strangers social media video by walking around in public.-- But in the end it's a cultural thing with people just respecting each others privacy a bit more, it would probably work without an explicit law.
The laws regarding security cameras are also pretty strict. For example you can't have a camera on your house recording the public street in front of it.