本文採用一種FPGA平台來實現打磚塊遊戲。在遊戲中,擋板是由手部動作,通過影像處理模组進行控制,手部動作由人體膚色檢測系統來檢測。首先,影像影由CMOS攝影機捕獲,接著經由子樣本模塊來減少影像的複雜度。其次,將RGB格式的輸入影像變換到對數色系座標系統(log -opponent)的顏色空間, 同時經由二進制膚色概率值的選定來過濾膚色像素。第三,本系統利用影像處理分析演算法( image processing analysis algorithm)來處理多皮膚區域的情況。 第四,皮膚區域被檢查以確定是否它們是人類膚色。第五,進行遊戲演算法之計算,並在VGA屏幕上顯示結果。最後,由手部動作控制打磚塊遊戲的擋板。實驗結果顯示,本系統具有良好的性能,並滿足手部動作追蹤的目標。
This thesis uses a FPGA-based platform to implement a breakout game system. In the game, the paddle is controlled by hand motions through an image processing module. The system detects the hand motions by human skin color. Firstly, images are captured by a CMOS camera and a sub-sample module is used to reduce the image complexity. Secondly, the RGB format input image is transformed to log-opponent color space. A binary skin probability value is chosen to filter the skin pixels. Thirdly, an image processing analysis algorithm is applied to separate skin regions, if the image has more than one skin regions. Fourthly, the skin regions are checked to determine if they are human skin or not. Fifthly, the game algorithm, brick breakout game, is created and displayed on the VGA screen. Finally, the paddle of the brick breakout game is controlled by hand motions. Designed under hardware and software co-design methodology, the resultant system demonstrates high performance and satisfies the goal of real-time hand motion tracking.