Robust Skin Colour Detection And Tracking Algorithm

DOI : 10.17577/IJERTV1IS8627

Download Full-Text PDF Cite this Publication

Text Only Version

Robust Skin Colour Detection And Tracking Algorithm

International Journal of Engineering Research & Technology (IJERT)

ISSN: 2278-0181

Vol. 1 Issue 8, October – 2012

Ms.Prajakta M.Patil Prof.Y.M.Patil

Assistant Professor of E & TC Engineering, Professor of Electronics Engineering, ADCET, Ashta, India KIT, Kolhapur, India

Abstract

Here concept of skin detection & robust skin color detection algorithm is discussed. Three colour spaces RGB, YCbCr, HSV and their histograms are of main concern. We have combined three colour spaces to get an effective skin colour detection algorithm which gives better performance and accuracy. Experimental results show that the proposed algorithm is good enough to detect a human skin in an image. Skin detection is related in tasks like hand detection and tracking, face detection and tracking, people retrieval in databases and Internet, , naked people detection, pornographic image filtering, facial expression analysis, human computer interaction, security systems, human pose modelling, personal identity, verifications video surveillance, image retrieval, image editing. etc. However, skin detection is not robust enough for dealing with some real-world conditions. The main problems with the robustness of skin colour detection are (1) it varies between individuals (2) dependence on the illumination condition, and (3) skin colour is not unique i.e. many everyday life objects are skin colour like. Skin detection is the process of finding skin-colored pixels and regions in an image. This algorithm is based on testing database containing many of human images. A skin detection system is never perfect and different users use different criteria for evaluation. Skin colour is often used because it is invariant to orientation and size, gives an extra dimension compared to gray scale methods, and is fast to process. The objective of proposed algorithm is to improved skin colour detection.

  1. Introduction

    Skin region detection plays a vital role in wide range of image processing applications. The skin colour is often used as a cue for detecting, localization and tracking targets containing skin, like faces and hands in an image. It is often not enough to separate skin objects from non-skin objects like wood, which can appear to be skin coloured. Therefore, skin is often combined with other cues like motion, texture and edge features. The goal is to divide the pixels of the image into skin coloured and non-skin coloured.The simplest methods define skin colour to have a certain range or values in some co-ordinates of a colour space. Detecting human skin tone is of utmost importance in numerous applications such as, video surveillance, face and gesture recognition, human computer interaction, human pose modelling, image and video indexing and retrieval, image editing, vehicle drivers drowsiness detection, controlling users browsing behaviour (e.g., surfing

    indecent sites) and steganography. Detection of human skin tone is regarded as a two-class classification problem, and has received considerable attention from researchers in recent years [1, 2]

    The preliminary steps in skin detection are the representation of image pixels in color spaces, suitable distribution of skin & non skin pixels, & after that skin color modeling. According to skin colors distribution characteristics on color space, skin color pixels can be detected quickly with skin color model. However it is difficult to detect skin color more accurately, because there exists many differences about skin color space distribution, which is affected by different race and different illumination [3]. By using skin color model we can described skin colour characteristic. Usually, researcher has to face two problems: colour space selection and how to use the color distribution to establish a good skin color model. Color information is an efficient tool for identifying skin areas if the skin color model can be properly adapted for different lighting environments.

    In images, skin color is an indication of human and human like existence. Therefore, in the last 20 years extensive research have focused on skin detection in images and its uses in detecting face and non-face like features. Skin detection using color information can be a challenging task as the skin appearance in images is affected by various factors such as illumination, background, camera characteristics, and ethnicity. Numerous techniques are presented in literature for skin detection using color. Skin-color detection in visible spectrum can be a very challenging task as the skin color in an image is sensitive to various factors such as:

    1. There is color constancy problem that means indoor, outdoor, shadows; highlight produces a change in the skin color of images. So it is very important problem which seriously affect the performance of skin detection task.

    2. Skin color also varies from person to person belonging to different ethnic groups and from persons across different regions

    3. The skin-color distribution for the same person differs from one camera to another depending on the camera sensor Characteristics.

    4. Individual characteristics such as age, sex and body parts also affect the skin-color appearance.

    5. Different factors such as subject appearances (makeup, hairstyle and glasses), background colors, shadows and motion also influence skin-color appearance [4].

  2. Colour Spaces

    Many different color spaces are employed in literature including RGB, normalized RGB, HSI, HSV, YCbCr, YES, YUV, CIE Lab. The primary step is the selection of a suitable color space, i.e. a color space in which one can easily discriminate

    between skin and nonskin pixels. The choice of the color space affects the performance of any skin detector and its sensitivity to changes in illumination conditions [4]. The proposed algorithm based on skin color model in YCbCr chrominance space and HSV color space. A thorough out survey of different color space is carried out by Veznevets [3] HSV and YCbCr color spaces help to a greater extent in handling intensity variations.

      1. RGB (red, green, and blue)

        The primary process in skin color modeling & classification is color space selection. For most of the color images, in figure1.RGB represents the default color space used for storing and representing digital images RGB is a. from a linear or non-linear transformation of RGB, we can get any other color space. The color space transformation is used to decrease the overlap between skin and non-skin pixels. The choice of appropriate color space is often guided by the skin detection methodology and the application. It is to be noted here that the evaluation of color space goodness for skin modeling cannot be performed because different modeling methods react very differently on the color space change. Normalized RGB is a representation that is easily obtained from the RGB values by a simple normalization procedure,

        As the sum of the three normalized components is known (r+g+b = 1), the third component does not hold any significant information and can be omitted, reducing the space dimensionality. The remaining components are often called pure colors, for the dependence of r and g on the brightness of the source RGB color is diminished by the normalization. A remarkable property of this representation is that for matte surfaces, while ignoring ambient light normalized RGB is invariant [3]

        Figure1.RGB color space

      2. YCbCr (luminance, chrominance)

        YrCb is an encoded nonlinear RGB signal shown in figure2. It used by European television studios and for image compression work. Two difference chrominance values Cb & Cr formed by subtracting luminance from blue & red components. Because of separation of luminance & chrominance components, this color space is effective for skin color modeling. The transformation simplicity and explicit separation of luminance and chrominance components makes this color space [5] The YCbCr space is one of the most popular choices for skin detection The equation for RGB conversion to YCbCr can be seen in equation (1).

        Figure 2.YCbCr color space

      3. HSV (Hue Saturation Value)

    In Figure 3, Hue indicates the dominant color of an area; saturation calculates the colorfulness of an area in proportion to its brightness. Value indicates the color luminance. Separation between chrominance & luminance makes this color space popular in the skin color detection. The transformation of RGB to HSV is invariant to high intensity at white lights, ambient light and Surface orientations relative to the light source and hence, can form a very good choice for skin detection methods.

    Figure 3.HSV color space

  3. Skin Colour Detection

    Lot of research is going on in the area of human skin detection at present. Different methods addressing the problem of skin detection has been proposed by many researchers. Methods of Skin Detection-1) Pixel-Based Method-Classify each pixel as skin or non-skin individually, independently from its neighbors. Color Based Methods fall in this category.2) Region Based Methods-1) Try to take the spatial arrangement of skin pixels into account during the detection stage to enhance the methods performance. Additional knowledge in terms of texture etc is required. The combination of all the above color spaces like RGB, HSV, and YCbCr gives the better skin detection performance. Once we choose the color space then next step is skin color modeling. In this approach there are two main steps- Classify the skin region in the color space, apply threshold to identify the skin region.

    3.1. Skin Detection Algorithm in RGB, YCbCr, and HSV color space

    The pixels for skin region can be detected using a normalized color histogram, and can be further normalized for changes in intensity on dividing by luminance. And thus Converted an [R, G, B] vector is converted into an [r, g] vector of normalized color which provides a Fast means of skin detection. Skin color model based on the Cb and Cr values can provide good coverage of different human races. [Cra, Crb] and [Cba, Cbb] are the chosen threshold values. If the values [Cr, Cb] fall within the thresholds then it identifies as a skin color. Skin color classification in HSI color space is the same as YCbCr color space but here hue & saturation are responsible values instead of Cb,Cr, [Ha, Sa] and [Hb, Sb] are the chosen threshold values. If the values [H, S] fall within the thresholds then it identifies as a skin color.

  4. Proposed Skin Colour Detection Algorithm

    In this paper, skin region is formed by combining the skin identified region from the skin color detection algorithm in RGB, YCbCr, and HSV color space. Thus, the algorithm are combined assuming that their combination gives the skin region from the image if the skin image is detected by one or more algorithm(s) and for the same image other algorithm gives the false result. If we state that the result from RGB color space is P, the result from YCbCr color space is Q and the result from HSI color space is R and if any of the result contains a skin image then the union of the three will surely be a skin image. In this way, we can detect the skin region by using combination of all the three color spaces.

    Figure 4.Proposed Algorithm Flowchart

    As shown in Figure 4, first take image from database which having default RGB colour space. Then perform RGB to HSV colour space conversion and show the histogram distribution of HSV so that we can find out threshold for skin colour region using HSV. Similarly, perform RGB to YCbCr colour space conversion and show the histogram distribution of YCbCr by using this find out threshold for skin region. In next step, combined all above colour spaces on based on the basic idea of venn diagram and finally mask the skin colour region.

    Figure 5. a) Original RGB image b) output skin detected image c) HSV colorspace d) HSV histogram distribution e) YCbCr colorspace f) YCbCr histogram distribution

    Figure5. Shows the sample example in which fig.5a is original color image and fig5b.shows skin colour

    detected image after application of proposed skin detection algorithm using matlab.fig5c.shows HSV color space model of original color image in which we can observe hue, saturation and value.fig5d.is a HSV histogram distribution.fig5e shows the YCbCr color space model of original color image and fig5f.shows its histogram distribution.

  5. Experimental Results

    In this section a detailed experimental comparison of the above stated algorithms has been presented. Each algorithm is implemented using mat lab programming language. Each technique is applied on a wide variety of images extracted from internet. Figure 5 shows some sample images which are analyze by skin detected algorithm having good accuracy.

    Figure 6. Sample results of proposed skin detection algorithms

  6. Conclusion and Future Scope

    In this paper, we have presented a novel Skin region detection method using combination RGB- YCrCb-HSV Colour model. RGB-YCrCb-HSV model is applied to detect human skin region. Primarily, various factors like Illumination, camera characteristics, is crucial to the success of a robust skin region tracking. The above algorithm was implemented in MATLAB.The algorithm can process different kind of images, as images in different lighting conditions .50 test images which were given as an input to the algorithm directly from the camera output interface to the system. A test to prove the performance of the algorithm was used using different images from Internet. The experimental results showed that our new approach in modeling skin color was able to achieve a good detection success rate & gives satisfactory, better performance. After skin color detection from this method we can track the face, hand & other body parts. Implementing the current algorithm in C/C++ to further improve the processing speeds.5. Second and following pages

  7. References

  1. M. Corey, F. Farzam, J.H. Chong, The effect of linearization of range in skin detection, in: Proceedings of IEEE International Conference on Information, Communications and Signal Processing, Singapore, 10 13 December 2007, pp. 15.

  2. U.A. Khan, M.I. Cheema, N.M. Sheikh, Adaptive video encoding based on skin tone region detection, in: Proceedings of IEEE Students Conference, vol. 1, Pakistan, 1617 August 2002, pp. 129134.

  3. V. Vezhnevets, V. Sazonov, and A. Andreeva, A Survey on Pixel- Based Skin Color Detection Techniques, Proc. Graphicon-2003, Sep.2003, pp. 85 92.

  4. P. Kakumanu, S. Makrogiannis, N. Bourbakis, "A Survey of Skin-Color Modeling and Detection Methods", Pattern Recognition 40, pp 1106- 1122, 2007.

  5. B.D., Zarit, B.J., Super, and F.K.H. Quek, "Comparison of five color models in skin pixel classification. In Int. Workshop on Recognition, Analysis, and Tracking of Faces and Gestures in Real- Time Systems, pages 58-63, Corfu, Greece, Sept. 1999.

  6. M. J. Jones, J. M. Rehg. Statistical color models with application to skin detection. Proc. IEEE Conference on Computer Vision and Pattern Recognition, Fort Collins, 1999, 274-280.

  7. R.Gonzalez and R.Woods, Digital image Processings econd edition, prentice hall.

[8]A robust skin color based face detection algorithm- Sanjay Kr. Singh, D. S. Chauhan2, Mayank Vtsa, Richa Singh* Tamkang Journal of Science and Engineering, Vol. 6, No. 4, pp. 227-234 (2003)

  1. EXPLICIT CONTENT IMAGE DETECTION, Jorge Alberto Marcial Basilio1, Gualberto Aguilar Torres1, Gabriel Sanchez, Signal & Image Processing: An International Journal (SIPIJ) Vol.1, No.2, December 2010

  2. Towards Robust Skin Colour Detection and Tracking, Nuwan Gamage, Student Member IEEE School of Engineering Monash University Bandar

    Sunway, Malaysia- International Instrumentation and Measurement Technology Conference Singapore, 5-7 May 2009

  3. Segmentation Algorithm for Multiple Face Detection in Color Images with Skin Tone Regions using Color Spaces and Edge Detection Techniques,H C Vijay Lakshmi and S. PatilKulakarni,International Journal of Computer Theory and Engineering, Vol. 2, No. 4,

August, 2010

[12]A New Fast Skin Color Detection Technique Tarek

M. Mahmoud.World Academy of Science, Engineering and Technology 43 2008

  1. Skin Region Tracking using Hybrid Color Model and Gradient Vector FlowYang YANG1,2, Zhiliang WANG1, Mengmeng Zhang1,2,YANG1, Nannan CHENG2, International Conference on Machine Vision and Human-machine Interface2010.

  2. Cho, k.M., jang, J.H., and Hong, K.S.Adaptive skin color filter, Patternrecognition, 34(5), pp:1067- 1073.,2001

  3. A Comparative Study of Skin-Color Models- Juwei Lu, Qian Gu_, K.N. Plataniotis, and Jie Wang Bell Canada Multimedia Laboratory, The Edward S. Rogers Sr.,Department of Electrical and Computer Engineering.

  4. B.D., Zarit, B.J., Super, and F.K.H. Quek, "Comparison of five color models in skin pixel classification". In Int. Workshop on Recognition, Analysis, and Tracking of Faces and Gestures in Real- Time Systems, pages 58-63, Corfu, Greece, Sept. 1999.

  5. Computer Vision and Human Skin Colour- Moritz St Äorring Faculty of Engineering and Science.

  6. Face Detection Using Skin Tone Segmentation- Sayantan Thakur1, Sayantanu Paul1, Ankur Mondal,

    Swagatam Das, 978-1-4673-0125-1@c 2011 IEEE

  7. An Innovative Face Detection based on Skin Color Segmentation- Kamarul Hawari Bin Ghazali, International Journal of Computer Applications (0975 8887) Volume 34 No.2, November 2011

  8. Performance Analysis of Human Skin Region Detection Techniques with Face Detection Application-

    R. Vijayanandh, Member, IACSIT and Dr. G. Balakrishnan, International Journal of Modeling and Optimization, Vol. 1, No. 3, August 2011

  9. Research on a Skin Color Detection Algorithm Based on Self-adaptive Skin Color Model, Guoliang Yang, 2010 International Conference on Communications and Intelligence Information Security.

  10. A NEW COLOUR SPACE FOR SKIN TONE DETECTION, Abbas Cheddad, Joan Condell, Kevin Curran and Paul Mc Kevitt@ 2009 IEEE.

  11. A skin tone detection algorithm for an adaptive approach to steganography-Abbas Cheddad, JoanCondell, KevinCurran, PaulMcKevitt, Signal Processing 89(2009)24652478

  12. Face Segmentation Using Skin-Color Map in Videophone Applications, Douglas Chai, Student Member, IEEE, and King N. Ngan, Senior Member, IEEE.IEEE Transactions On Circuits And Systems For Video Technology, Vol. 9, No. 4, June 1999

  13. Skin Detection – a Short Tutorial,Ahmed Elgammal, Crystal Muang and Dunxu HuTo appear as an entry in Encyclopedia of Biometrics by Springer-Verlag Berlin Heidelberg 2009.

Leave a Reply