I don't think you understand the problem scope. Guns are hidden behind clothing and you're going to have a lot of false positives.
“One man jumped onto the teller counter and pulled out a handgun, throwing down a garbage bag for the tellers to fill with money”
Outside cameras could have tracked them into a car, if it was reasonably close.
A security firm can monitor for false positive.
This would probably work for your average convenience store robbery too. In the US, we have a large market for security.
As with any real world problem, there are lots of obstacles. Sure, your AI will need to figure out if the gun is being pointed at someone, etc.