Yes, I've seen other demonstrations of systems like this in the past. Of course the answer to problems with guns is easily demonstrated by other countries; they control them as tightly as possible. Since this is not possible in the US, people try workarounds that are pretty much futile.
While I applaud you for thinking of unique ways to solve this issue, there are already similar automated gun detection systems on the market. One of which, called ShotSpotter, has been highly criticized for inaccuracy & privacy invasiveness.
While it primarily uses acoustic detection, a recent analysis demonstrated it caused 40,000 false police responses over the period of 21 months.
The EFF is highly critical of them over the fact they're constantly recording audio & video and that could be potentially problematic for a host of other reasons, however in a school, I'm sure there are constant recordings regardless.
Don't let that dissuade you though. Problems like this require a variety of innovative solutions and with GenAI now being able to identify things visually, perhaps it can do a better job than the acoustic systems in the past. It would definitely need to have loads of training data on all different gun models & types and need to differentiate other common objects students might be holding in their hands like a pen or a phone, etc.
Fantastic. You've merged further subjecting young children to surveillance-state living, AND removing guardrails around AI so that individuals can be subjected to State violence without an accountable party.
I have an even better system that works in 99% of the other countries flawlessly. Modify the second amendment and make only pistols allowable for civilians and in order to procure a gun, you must give a 10 page long report of why you need one. Problem solved
Most shootins are done with handguns and not rifles statistically - and those are much much easier to conceal.
What happens to false positives? Are you increasing a chance of a kid with a "tactical umbrella" being shot?
but yay! more surveilance and cameras!