Robust recognition of traffic signals