That's true while on the street or in a public park. That does not apply to students at a school function. There are laws protecting students in such a situation, which is why in the US, parents have to give permission for images of students to be published.
Which country are you talking about? Us federal law required consent to opt-in. As far as I know, FERPA hasn't received an update concerning that.