Professional Documents
Culture Documents
A New Face Detection Algorithm Based On Skin Color Segmentation
A New Face Detection Algorithm Based On Skin Color Segmentation
Color Segmentation
Abstract—In this paper, a new face detection approach based greater differences of light, image sensor and other external
on skin color segmentation is presented. First, the color image is environment factors.
converted into YCgCrcolor space from RGB, because
the performance of clustering is excellent in YCgCr color space. The effect of lighting compensation on the skin color
We get the segmented image by using the algorithm of support distribution is studied in section II. In this section, the result of
vector machine in YCgCr color space. Finally, we offer a face clustering performance in different color space is compared.
verification algorithm according to the geometric features of face Different skin color segmentation methods are studied and
after morphological operation to wide off non-face areas. compared in section III. We select the method of support vector
Experimental results show that the method is valid, fast and machine algorithm to segment the skin color. Experimental
suitable for rapid detection system. results are given in section IV. Section V is conclusion.
70
80
90
(a)
100
Cg
110
120
130
140
150
(a) Cr-Cg
Cr-Cb
Cr
80 100 120 140 160 180 200 220
90
100
((b) 110
120
Cb
140
160
110
color in different color space was studied in paper [6] and 120
paper [7]. YCgCr and YCbCr color space is similar, except the 130
formula of YCbCr and RGB. And they show the excellent (a)
performance of YCgCr color space. The conversion formulas Cr-Cg
are shown as (2) and (3). Cr
80 100 120 140 160 180 200 220
60
« » « » « »« » 90
110
« » « » « »« » 140
524
Cr-Cb
Cr
80 100 120 140 160 180 200 220
90
100
110
120
130
Cb
140
150
(a) Original image (b) Threshold segmentation
160
170
180
(a)
Cr-Cb
Cr
80 100 120 140 160 180 200 220
90
100
110
(c) Segmentation of Gaussian model (d) Method in this paper
120
130
Fig. 5. Result of different segmentation methods
Cb
140
150 Cr-Cg
Cr
160
120 130 140 150 160 170
170
90
180
100
(b)
110
Fig. 4. Distribution of skin color in Cr-Cb, (a) Before compensation (b) After
Cg
120
compensation
130
140
III. FACE DETECTION
A. Skin Detection Fig. 6. The classification result of skin color and non-skin color in Cr-Cg use
After converting the color space, the clustering of skin SVM. Yellow region is the skin area and the other region is non-skin area.
color is better. It is necessary for establishing the model of skin
color. There are many models of skin color. Threshold face regions, such as the arm and other parts of the body, which
segmentation is the simplest method, which has fast computing are not what we need. So we need to confirm the area detected.
speed. The disadvantage of this method is that the model is not First, the noise is removed through morphological operations.
accurate enough. A lot of non-skin pixels are determined as Then the hole in binary picture is filled. Considering the
skin pixel if the threshold value is too large. However, if the geometry characteristics of face, we provide a face verification
threshold value is too small, many skin pixels cannot be algorithm. The criterion of the algorithm is shown below.
detected. One reliable method is the Gaussian skin color model, (1) Removing small area.
which calculates the similarity to determine skin color area [6].
In fact, Gaussian model is the approximation model for skin (2) Aspect ratio of circumscribing rectangle is 0.5 to 1.8.
color. Skin color is not strictly Gaussian distribution. The (3) Because the face is symmetric in vertical and horizontal
classification is not very accurate though it is better than directions, so we divide the circumscribing rectangle of skin
threshold segmentation method. Skin detection can be regard as region into three sections from top to bottom, as show in Fig. 7
a classification problem of two categories, namely skin and (a). Then we calculate the difference for the left and right parts
non-skin. The support vector machine is an effective method to of each section to get the ratio of total area. For example in part
solve two classification problems. The segmentation results of A, the sum of the white pixels which lie in the black rectangle
different segmentation methods are shown in Fig. 5. We can of Fig. 7 (b) is subtracted from the sum of white pixels in the
get the distribution of skin color in specific color space by a lot white rectangle of Fig. 7 (b). Then we get the ratio value of
of samples. We will get the appropriate solution of the problem total numbers of white pixels in Fig. 7 (a). The sum of three
by setting the appropriate parameters after training the samples. ratio values of A, B and C should be greater than a threshold.
In this paper, 369 positive samples and 521 negative samples The parameter of threshold is set to 0.2 in this paper. If the sum
are used. The final classification results are shown in Fig. 6. less than the threshold, we think this area is not face.
B. Face Verification (4) In the same way, the circumscribing rectangle of skin
region is divided into three parts from left to right as shown in
There are always some pixels exist which is similar to skin
Fig.8. The parameter of threshold is set to 0.2.
color in real scenes. The results of segmentation will inevitably
appear some interference. At the same time there are many non
525
(a) (b)
(a) (b)
Fig. 10. Partial experimental results
Fig. 8. Step 4 for face Verification
REFERENCES
[1] Paul Viola and Michael Jones, “Robust real-time face detection,”
International Journal of Computer Vision, vol. 57, no. 2, pp. 137-154,
May 2004 .
(a) (b) [2] C. A. Poynton, “A technical introduction to digital video,” Computer
Vision and Image Understanding , pp.62–68, 1996.
[3] Huang, Lui Ming, H. S. Liu, and G. P. Liu. “Real-time Face Tracking in
Video Using Gray World Assumption for Images Preprocess,”
International Journal of Digital Content Technology & Its Applic, vol. 7,
no. 12, pp. 175-182, August 2013.
[4] Hsu, Abdel. Mottaleb, and Jain, “Face detection in color images,” IEEE
Trans Pattern Anal Mach Intell, vol. 24, no. 5, pp. 696-706.
[5] Ghazali, Kamarul Hawari Bin, Jie Ma, Rui Xiao, and Solly Aryza lubisi,
“An Innovative Face Detection Based on YCgCr Color Space,” Physics
Procedia, vol. 25, pp. 2116–2124, April 2012.
(c) (d) [6] J. C. Terrillon, M. N. Shirazi, H. Fukamachi, and S. Akamatsu,
“Comparative performance of different skin chrominance models and
Fig. 9. Example of face verification chrominance spaces for the automatic detection of human faces in color
images,” in Proc Conference on Automatic Face and Gesture
Recognition, 2000, pp. 54- 61.
IV. EXPERIMENTAL RESULTS [7] J. Montenegro, W. Gomez, and P. Sanchez-Orellana. “A comparative
The test set in this article comes from laboratory and AFW study of color spaces in skin-based face segmentation,” in Electrical
Engineering, Computing Science and Automatic Control (CCE), ,
dataset [9]. We use 20 pictures to train which are selected September 2013, pp. 313-317.
randomly from the test set. There are 20 faces totally for [8] De Dios, Juan José, and N. Garcia. “Face detection based on a new color
testing. 16 faces are detected correctly and 3 non-faces are space YCgCr,” in IEEE International Conference on Image Processing,
detected. The accuracy is 80% and the error rate is 15%. Parts vol. 3, , September 2003, pp. 909-912.
of the experimental results are shown in Fig. 10. Experiment is [9] http://www.ics.uci.edu/~xzhu/face/.
tested in Intel (R) Core (TM) i5-4210@1.7GHz 2.4GHz,
Windows7, Visual Studio 2010.
526