The short answer
Look at how the people are depicted, not only where the camera stood. A wide street scene may capture ordinary public activity, while a close image of someone in distress or a vulnerable situation calls for much greater care. Consider whether the stranger's identity is essential to your story and whether a different frame would preserve the atmosphere with less exposure. Legal requirements vary by place and intended use; public visibility does not guarantee unrestricted reproduction or advertising rights. Check the photographer's permission separately and avoid presenting assumptions as settled rules.
What to consider
Compare two frames of a lively street market. One conveys the scene through awnings and passersby seen at a distance; the other centers a recognizable stranger during an awkward or vulnerable moment. Ask if identifying that person is essential to the story. A wider scene or an alternate exposure might preserve the setting with less privacy impact. Record where and why the image was captured without treating a public sidewalk as blanket consent.
A person may have been visible in public yet object to an enlarged print or promotional use of their image. FAQ 0336 handles an unknown figure in an archival family photo; the Canvas article explores the street scene as art. This review is specifically about contemporary dignity and context. Copyright in the source, subject interests, commercial use and applicable local rules remain separate questions; no categorical legal clearance is inferred.