I would add that even IF the technology allowed to "scan" a crowd and actually detect instantly and reliably a (visible) gun, what "remedies" do you have handy?
I mean, it is not like at any school there is (or can be) a sort of SWAT team on alert and capable of an intervention in - say - 5 minutes.
And - cannot say on the specific 2018 shooting at that school - from what I understand the typical sequence is:
1) someone enters a school (or church, etc.) with a gun
2) as soon as a suitable target is within firing range, the shooting starts
and there is no more than 1, 2 or 3 minutes between #1 and #2 above, if the detection of the gun happens before (let's say outside when the shooter is approaching the building) you can maybe have a couple minutes more time.
And - even if you actually had this fast intervention armed team ready - can you only imagine the risks of false alarms/incidents with perfectly innocent people, it cannot possibly work.
Besides, there is no real need for facial recognition in this scenario, i.e. anyone, no matter who he/she is, should be detected if carrying a gun.