本論文主要是利用PTZ(Pan-Tile-Zoom)攝影機去做多人人臉的循序偵測與追蹤。在人臉偵測方面,首先利用顏色分割將膚色區域從影像中擷取出來,接著利用橢圓面板比對與連接元區域標定的方法,以達到人臉區域初步定位。初步定位後,運用一些幾何規則去對人臉特徵(眼睛、嘴唇)做搜尋,以找出人臉的正確位置。在單人人臉追蹤方面,控制PTZ攝影機對移動的人臉加以追蹤,使人臉保持在畫面中心,並利用影像投影的方法,將非人臉的膚色物體排除掉,以強健人臉的動態追蹤。 在多人人臉循序追蹤方面,當畫面出現第二個人臉時,則利用PTZ攝影機進行縮放動作並且追蹤第二個人臉區域,使第二個人臉置於畫面中心,由於系統執行縮放動作後,會將第一個人臉排除,因此當第三個人臉區域出現時,系統會繼續執行追蹤下一個人臉,以達到多人人臉追蹤的目的。本文以實際多人人臉即時影像加以實驗,結果顯示確實能達到多人人臉偵測與追蹤的效果,印證了本文所提方法的可行性。
This thesis utilizes Pan-Tile-Zoom camera (PTZC) to develop a multiple faces sequential detecting and tracking system. In the face detection part, first we extract skin region from image by color segmentation, then utilize the methods of ellipse matching and connected components labeling to decide the candidate face regions. After the preliminary face positioning, we use some geometry rules to search face features (eyes, lips) in order to find out the correct position of the face candidate. In the face tracking part, we use PTZC to track the moving face candidate, keep it in the picture center and room in PTZC to enlarge the face candidate. Here we also use the image projection method to remove those skin color pixels which are not belonged to the face’s elements from the image to get more robust dynamic face tracking results. For multiple face sequential tracking, the system will be interested in second face candidate when it appears. We track the new coming face candidate and let it become our new target. The same detecting and tracking methods will be used on this new face candidate. Moreover, the system will control PTZC to focus on this target. The same rules will apply on next coming new face candidates. When the face candidate disappears from the vision area of PTZC the system will start to search and track the other face candidate in its vision area continuously. After experiment with the real-time images of multiple faces, the result shows that the system can reach multiple faces detection and tracking, and proves the feasibility of proposed method in this thesis.