人臉偵測對於「臉孔辨識」、「駕駛睡眠偵測」與「智慧型人機介面」等應用是非常重要的,最近幾年來更是受到大家的廣泛重視。這些應用的首要工作在於找出人臉的所在區域,因此如何正確而可靠的找出人臉位置是相當重要的。在本論文提出了一個新的 大小的邊緣遮罩,同時利用可調式閥值的調整,對輸入的影像進行特徵邊緣檢測,可以突顯出欲偵測之人臉眼部、鼻孔及嘴部的水平方向性邊緣特徵。首先將影像利用小波轉換消除雜訊及降低解析度,由本文提出的新的邊緣檢測方法,建立臉部的水平方向性邊緣特徵,再利用多層次特徵模板進行眼部及嘴部的特徵比對,進而將正確的人臉位置標示出來。 Human face detection is very important in its wide range of applications, such as human face recognition, drowsiness detection, human-computer interface, etc. In most such applications, the existence of human faces and their correct locations must be found. In other words, a reliable and correct method for detecting and locating human face region is considerably significant. In this paper, a new 1x7 mask for edge detection combining the adjustment of adapted threshold values is proposed. In this way, we can increase the edge orientation features of eyes and mouths. First, the wavelet transform is used to reduce the noise and the dimension. Second, a new 1x7 mask is employed to build the horizental edge features. Third, a multilayer face template is used to match the horizental edge features of faces. Finally, a reliable and correct method is developed to locate human face region.