Skin color detection method and device
A technology of skin color detection and detection, which is applied in the field of computer vision, can solve the problems of time-consuming and labor-consuming, and achieve the effect of improving efficiency and good skin color detection effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a technical flow chart of Embodiment 1 of the present invention, combined with figure 1 , a skin color detection method in the embodiment of the present invention mainly includes the following steps:
[0025] Step 110: read the RGB image, and convert the RGB image from the RGB color space to the r-g color space to obtain the image to be detected;
[0026] In the embodiment of the present invention, the RGB image is converted from the RGB color space to the r-g color space using the following formula:
[0027] r = R R + G + B
[0028] g = G R + G + B
[0029] b=1-r-g
[0030] Wherein, R is the red value of the pixel point, G is the green value of the pixel point, and B is...
Embodiment 2
[0068] figure 2 It is the technical flow chart of Embodiment 2 of the present invention, combining figure 2 , in a skin color detection method in an embodiment of the present invention, the establishment of the mixed Gaussian model mainly includes the following steps
[0069] Step 210: mark the skin pixel area and non-skin pixel area of the RGB sample image to obtain skin pixel samples and non-skin pixel samples;
[0070] In the embodiment of the present invention, the RGB sample picture is first marked, which may be artificial, to distinguish the skin area and non-skin area in the picture, that is, to obtain skin pixel samples and non-skin pixel samples. Classifying the samples in advance helps to improve the efficiency of the subsequent EM algorithm in calculating the parameters of the mixed Gaussian model and the closeness of the parameters to the actual model.
[0071] Step 220: converting the skin pixel samples and non-skin pixel samples from RGB color space to r-g ...
Embodiment 3
[0088] image 3 is a schematic structural diagram of a skin color detection device according to an embodiment of the present invention, combined with image 3 , a skin color detection device mainly includes the following large modules: an image conversion module 310 , a probability calculation module 320 , and a skin color area judgment module 330 .
[0089] The image conversion module 310 is configured to read an RGB image, and convert the RGB image from the RGB color space to the r-g color space to obtain an image to be detected;
[0090] The probability calculation module 320 is connected to the image conversion module 310, and is used to traverse and read each pixel in the image to be detected and calculate the mixture Gaussian value of the pixel in the skin according to the pre-established Gaussian mixture model. The first probability density under the model and the second probability density of the pixel point under the non-skin mixture Gaussian model; used to calculate...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap