Security cameras are fine for filming your own property.
Any cameras are fine for recording any public property. That’s the whole idea of being in public: others can see you, you can see them, and you aren’t (shouldn’t) be doing something you wouldn’t mind being recorded. You have no expectation of privacy standing on a sidewalk.