Real-time face recognition based on pre-identification and multi-scale classification