Hard to do when the muzzle is mounted to a camera that's surveying a crowded square.
Moreover, you could have several guns, some more lethal than others (e.g., stun guns, etc).
And, even if we assume the system is perfect, would you want to live in such a place?