Face Detection and Localization in Skin Toned Color Images Using Wavelet and Edge Detection Techniques
Face Detection and Localization in Skin Toned Color Images Using Wavelet and Edge Detection Techniques
Abstract─ Detection and localization of face in colour images with process. While segmenting faces of people wearing skin-tone
skin tone regions involves many challenges. This paper proposes dresses (“Fig. 1c” and “Fig. 1d”) using skin pixel
an algorithm that uses a combination of wavelets, edge detection segmentation pre-processing technique, the entire image of the
techniques to improve the efficiency during segmentation and person with skin-tone dress is detected as the face region and
feature extraction stage. Experimental results using the proposed
hence requires a further face localization step. Besides,
algorithm presented here show improved false acceptance and
false rejection rates. overlapping face regions also add additional constraints while
segmenting the faces. Due to variation in illumination, skin
Keywords─Skintone Wavelets, Edge-detection, Feature regions may not be properly identified as skin during skin
extraction, Detection. segmentation. Locating faces in these circumstances is more
complex as opposed to localizing faces with uniform, non
I. INTRODUCTION skin-tone background. The “Open CV” face detection [13]
Face detection and localization is the task of software based on Viola-Jones [12] correctly identifies the
checking whether the given input image contains any human face region mostly with images containing single face, but
face, and if so, returning the location of the human face in the fails to the dataset containing multiple faces with skin-tone
image. A large number of factors govern the problem of face background and dresses (refer Fig. 2).
detection [10].The long list of these factors include the pose, In spite of using combination of different colour
orientation, facial expressions, facial sizes found in the image, spaces during segmentation, it is tedious to demarcate region
luminance conditions, occlusion, structural components, boundaries between skin and pseudo skin regions and also
gender, ethnicity of the subject, the scene and complexity of eliminate these regions from searching process. The use of
image’s background. Faces appear totally different under colour space alone sometimes fails to segment the boundary
different lighting conditions. A thorough survey of face regions of the image. In order to overcome this problem
detection research work is available in [10]. In terms of combination of colour spaces for efficient skin segmentation
applications, face detection and good localization is an followed by Canny and Prewitt edge detection to demarcate
important pre-processing step in online face recognition. the region boundary is used for input image segmentation [4].
This paper is organized as follows. Section II briefly
highlights the various challenges encountered while detecting
and localizing the faces in skin tone regions. The need for
robust segmentation and feature extraction is highlighted in
section III. The proposed algorithm is explained in section IV
and it is followed by results in section V and conclusion in
section VI.
232
Step-4: The extracted edge feature is stacked into an edge data row sum (and column sum) of each projected and
matrix as column vectors. reconstructed window approximation edges with the
corresponding row sum (and column sum) original window
Step5: Apply PCA on edge data matrix obtained in step-4 for
wavelet approximation edges using ‘City block’ similarity
reducing the dimension and thus obtain Wavelet Eigen-edges.
measures.
To fix up the similarity distance thresholds, run the data set
used for feature extraction as test set and fix up the minimum
and maximum thresholds T1 and T2 for both row and column
sum. Distance lies between T1 and T2 for the window
Figure 3a Input Face image Figure 3b Edge extracted raw input image contents containing face images. Best match is found when the
threshold is closer to the average of T1 and T2.
V. RESULTS
Figure 3c Edge extraction of Figure 3d Edge extraction of
I level approximation image II level approximation image In the experiments 35 face images of size 88 X 80 were
used for extracting second level approximation feature set
edges. When experiment was tried with face image size less
B. Testing Phase
than 80 X 80 pixels for extracting feature edges, the false
Step-1: Segment the input colour image using the algorithm detection rate was higher. Group images containing faces with
proposed by the authors [4]. Select the segmented regions variation in pose, having moustache, structural components
satisfying constraints like aspect ratio for the face, area greater and slight variation in expressions were used for testing. In [3]
than 800 pixels, having holes due to the presence of eyes and approximation coefficients were used without extracting
mouth as the probable face regions and omit other segmented edges. The number of false acceptances was higher in skin
regions. tone regions and there were false rejections in skin tone
images with complex background. The number of false
Step-2: If the size of the selected segmented region is larger
acceptances and false rejections were reduced considerably
than the size of the face with prominent facial features, use a
when the edge strength of the second level approximation was
sliding window technique in order to locate the face in the
used as the feature set.
segmented region. (A window of size 88 X 80 is considered in
the experiment). Place the fixed size window on the selected In the proposed method, there are few false rejections and
segmented regions. If the length of the segmented region is the number of false acceptance is minimized. False
larger than the window size, slide the window horizontally. acceptances are noticed only when approximation images
Slide the window vertically if the width of the segmented produce similar edges at identical positions. The proposed
region is larger. Slide both horizontally and vertically if both algorithm was tried on a number of group images with
the length and width are larger. variations in illumination, pose and structural components.
Cumulative false rejection and acceptance cases are tabulated
Step-3: Wavelet decompose each histogram equalized
in Table 1 for various sliding window contents.
window content up to second level as the window slides
across the selected segmented region. Retain only False rejections were noticed for face images with wide
approximation image and discard the details. variations in facial expressions as evidenced by “Fig. 4f” of
“Fig. 4c”, while the face in the image “Fig. 4h” of “Fig. 4d”
Step-4: Apply Canny and Sobel edge detection algorithm
was properly localized as there was less variation in
separately on the second level approximation images of
expression. Use of only wavelet approximation coefficients
every two level wavelet decomposed window approximation
without edge extraction [3] sometimes reported false
image.
acceptance even for window contents of “Figure 4g”.
Step-5: Combine the edges of the approximation window
image into a single image using pixel by pixel
multiplication. On this perform morphological operations
such as erosion and dilation to extract the prominent edge
features of the wavelet decomposed window content.
Step-6: The edge features obtained in step-5 is projected
onto the Eigen-edges obtained in the Feature extraction
Figure 4a Input Image Figure 4b After Segmentation
phase.
Step-7: Compute the row sum and column sum of each
projected and reconstructed window approximation edges.
Classification is performed by calculating distance between
233
International Conference on Signal Acquisition and Processing
February 2010, Bangalore February 9th -10th 2010, pp 162-166.
[5] Mohamed A. Berbar Hamdy M. Kelash, and Amany A. Kandeel “Faces
and Facial Features Detection in Color Images “ Proceedings of the
Geometric Modeling and Imaging― New Trends (GMAI'06) 0-7695-
2604-7/06
Figure 4c Figure 4d Selected Segmented Region for face localization [6] R. C. Gonzalez, R. E. Woods “Digital Image processing” Second edition
Prentice Hall India.
[7] Raman Maini & Dr. Himanshu Aggarwal “Study and Comparison of
Various Image Edge Detection Techniques “International Journal of
Image Processing (IJIP), Jan-Feb 2009, Volume (3) Issue (1)pp.1-11.
[8] Son Lam Phung, Abdesselam Bouzerdoum, and Douglas Chai “Skin
Figure 4e and Figure 4f Sliding window contents of Figure 4c Segmentation Using Colour and Edge Information” Perth, Western
Australia, Australia Proc. Int. Symposium on Signal Processing and its
Applications, 1-4 July 2003, Paris, France. 0-7803-7946-2/03
[9] V. Veznevets, V Sazonov, nad A Andreeva, “A survey on pixel-based
skin color detection techniques”, in Proceedings Graphicon-2003 pp.
85-92.
[10] Y. Ming-Hsuan, D J Kreigman, and N Ahuja, “ Detecting Faces in
Figure 4g and Figure 4h Sliding window contents of Figure 4d images: a survey”, IEEE Transactions on Pattern Analysis and Machine
intelligence, Vol 24, 2002, pp. 34-58.
VI. CONCLUSION [11] S. Phung,. A. Bouzerdoum and D. Chai, Skin segmentation using color
pixel classification: Analysis and comparison. IEEE Trans. on Pattern
In this paper an efficient algorithm that uses a Analysis and Machine Intelligence, 27(1), 2005,pp. 148–154.
combination of wavelet and edge detecting techniques to [12] P. Viola and M. Jones. "Robust real time object detection", International
detect and localize faces in colour images with skin-tone Journal of Computer Vision, 2001.
regions was proposed and experiment was conducted on [13] S. Krishna , “OpenCV face detection system” based on Viola-Jones
Method,
colour images. Results showed a considerable improvement in http://www.mathworks.com/matlabcentral/fileexchange/19912-open-cv-
false acceptance and false rejection rates compared to viola-jones-face-detection-in-matlab
algorithms that do not use the edge detection operations that
have been proposed.
TABLE 1 RESULTS
Approximation
Image without Bhattacharya 40 1500 128 20
Edge
Extraction
Cityblock 40 1500 44 38
REFERENCES
234