[[alternative]]Efficient face detection based on machine learning

Abstract

碩士[[abstract]]機器學習是一個能解決許多問題且非常有用及有效的演算法,在這篇論文中利用兩種機器學習演算法分別去偵測膚色及人臉。首先,在膚色的偵測的部份,為了解決膚色易受光源的影響,分別針對膚色群聚的特性而取的特徵,來克服光源強弱的變化及解決近似膚色的問題,在找到膚色的區域後,並得到一膚色二值化的圖,利用形態學中斷開及閉合的運算消除雜訊,再利用長及寬的比例1:4過濾出可能的區塊。在這些區塊之中使用20 x 20的滑動視窗去偵測每一個區塊中是否有人臉的存在,進一步去判別是否為左臉,正臉或者是右臉,判別的依據正是使用Adaboost去挑出特徵。在特徵的選取上,是採用Haar-like特徵及我們選擇的變異數特徵以克服光線強弱對人臉所造成的影響。 實驗結果顯示,可以克服光線強弱對膚色造成的影響,及偵測人臉旋轉,及多人臉。[[abstract]]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.[[tableofcontents]]目錄 第1章 緒論............................................................................................................1 1.1 研究動機與目的........................................................................................1 1.2 相關研究....................................................................................................1 第2章 相關理論....................................................................................................3 2.1 彩色模型.........................................................................................................4 2.1.1 RGB......................................................................................................4 2.1.2 YCbCr...................................................................................................5 2.1.3 HSV.......................................................................................................8 2.2 類神經網路-倒傳遞神經網路.....................................................................10 2.2.1 類神經網路的種類............................................................................11 2.2.2 類神經網路的介紹............................................................................12 2.3 AdaBoost........................................................................................................14 2.3.1 AdaBoost簡介.....................................................................................14 2.3.2 AdaBoost演算法.................................................................................15 第3章 研究方法..................................................................................................17 3.1 概要...............................................................................................................18 3.2 膚色的偵測...................................................................................................20 3.2.1 類神經網路參數設定........................................................................20 3.2.2 YCbCr特徵-第一階段........................................................................22 3.2.3 RGB特徵-第二階段...........................................................................23 3.3 AdaBoost的設計與運用................................................................................27 3.3.1 特徵選取............................................................................................27 3.3.2 弱分類器的建立................................................................................28 3.3.3 AdaBoost的訓練.................................................................................29 3.4 後處理...................................................................................................31 第4章 實驗結果與討論......................................................................................31 4.1膚色偵測系統評估........................................................................................31 4.1.1偵測錯誤的膚色.................................................................................32 4.2人臉偵測系統評估........................................................................................33 4.3 實驗結果.......................................................................................................36 第5章 結論與未來展望......................................................................................38 參考文獻......................................................................................................................38 圖 目 錄 圖2-1 RGB彩色模型..................................................................................................5 圖2-2 YCBCR顏色空間膚色分布圖........................................................................7 圖2-3 亮度在160時,膚色分布圖..........................................................................7 圖2-4 HSV顏色空間膚色分布圖及對應的顏色......................................................9 圖2-5 類神經示意圖................................................................................................10 圖2-6 倒傳遞類神經示意圖....................................................................................12 圖2-7 倒傳遞網路的網路架構圖............................................................................13 圖2-8 SIGMOID 函數式意圖....................................................................................13 圖3-1 系統流程圖....................................................................................................19 圖3-2 YCBCR特徵圖..............................................................................................23 圖3-3 膚色受外來因素影響的偵測結果................................................................24 圖3-4 膚色受光線強弱影響的偵測結果................................................................24 圖3-5 各種人種膚色的偵測結果............................................................................24 圖3-6 黑色人種膚色的偵測結果............................................................................25 圖3-7 複雜背景的偵測結果....................................................................................25 圖3-8 HAAR-LIKE特徵.............................................................................................28 圖3-9 弱分類器符號因子及門檻值........................................................................29 圖3-10 特徵的選取..................................................................................................31 圖4-1 膚色偵測結果................................................................................................32 圖4-2 膚色偵測結果................................................................................................33 圖4-3 訓練用的部分人臉及非人臉樣本................................................................34 圖4-4 修正後的正例訓練樣本................................................................................34 圖4-5 單純背景偵測結果........................................................................................36 圖4-6 複雜背景偵測結果........................................................................................37 圖4-7 左轉及右轉臉偵測結果................................................................................37 圖4-8 正臉偵測結果................................................................................................37 圖4-9 多人臉及複雜背景偵測結果........................................................................37 表 目 錄 表4-1 DETECTION RATE AND FALSE ALARM RATE比較...........................................35 表4-2 DETECTION RATE AND FALSE ALARM RATE比較...........................................36 公式 目 錄 式2-1 RGB膚色偵測門檻值......................................................................................5 式2-2 YCBCR膚色偵測門檻值................................................................................6 式2-3 YCBCR膚色偵測門檻值................................................................................8 式2-4 RGB轉換成HSV的公式..................................................................................9 式2-5 HSV膚色偵測門檻值....................................................................................10 式4-1 DETECTION RATE.............................................................................................34 式4-2 FALSE ALARM RATE.........................................................................................34[[note]]學號: 693191123, 學年度: 9

    Similar works