Pattern recognition based on computer vision has been applied in the field of driver drowsy detection. In order to improve the value of application of this technology, a novel scheme is proposed for automatic and fast detection of human faces in grayscale images, under non-constrained scene conditions, where the location, the orientation and the size of the faces are unknown. The main idea is based on the Markov model to select the object structural feature, then the multi-scale analysis is used to detect object. Extensive experimental results show that the algorithm is effective and robust to detect the face at any position and any scale.