Face detection method and apparatusпатент