Skin Color Detection
利用你所學的顏色的知識,撰寫一個程式來偵測一張輸入照片中的皮膚區域並將其標 示出。
藉由https://arxiv.org/ftp/arxiv/papers/1708/1708.02694.pdf(Human Skin Detection Using RGB, HSV and YCbCr Color Models)所提供的膚色偵測臨界值,(0.0 <= H <= 50.0 and 0.23 <= S <= 0.68 and R > 95 and G > 40 and B > 20 and R > G and R > B and | R - G | > 15 and A > 15)
以一個雙層迴圈去比較每一個pixel,符合的pixel填入1,不符合的填入0,得以下結果


沒有留言:
張貼留言