Anomaly recognition method of perception system for autonomous vehicles based on distance metric