A cloud-based deep learning system for improving crowd safety at event entrances