機器學習是一個能解決許多問題且非常有用及有效的演算法,在這篇論文中利用兩種機器學習演算法分別去偵測膚色及人臉。首先,在膚色的偵測的部份,為了解決膚色易受光源的影響,分別針對膚色群聚的特性而取的特徵,來克服光源強弱的變化及解決近似膚色的問題,在找到膚色的區域後,並得到一膚色二值化的圖,利用形態學中斷開及閉合的運算消除雜訊,再利用長及寬的比例1:4過濾出可能的區塊。在這些區塊之中使用20 x 20的滑動視窗去偵測每一個區塊中是否有人臉的存在,進一步去判別是否為左臉,正臉或者是右臉,判別的依據正是使用Adaboost去挑出特徵。在特徵的選取上,是採用Haar-like特徵及我們選擇的變異數特徵以克服光線強弱對人臉所造成的影響。 實驗結果顯示,可以克服光線強弱對膚色造成的影響,及偵測人臉旋轉,及多人臉。 The machine learning is the state-of-the-art algorithm to solve all kinds of problems. This paper utilizes two types of machine learning algorithm to detect skin and face respectively. First, in the skin detection, to overcome the variance of light on the face is our most essential issue. According to the issue, two features chosen to serve as input of neural network dividedly, the first feature based on YCbCr to conquer the diversity of light, the second feature based on RGB to get over the color near the skin color and we get a binary map. Utilizing Opening and Closing to eliminate the noises and using the proportion of height and width to filter the candidate blocks. Second, in the face detection, the haar-like features[11][12] are utilized to serve as features of modified Adaboost to justify the left, frontal, right, or non-face in the 20 x 20 sliding window. Experimental results show that the proposed methods reach to better performance. In terms of skin color detection, capacity of coping with the problems of scaling, rotation and multiple faces, it results in good detection rate.