Counts people without double-counting them, measures how long the queue waited, draws a heat map of where they stood, and checks whether the hard hats are on. Security is almost a side effect.