Combining retrieval and classification for real-time face recognition