How AI is used for facial recognition in surveillance cameras