System and method for automatic skin tone detection in images
First Claim
1. A computer-implemented method, comprising:
- accessing data representing an image comprising a plurality of pixels;
creating an initial skin tone mask for the image dependent on a general skin tone model, wherein the general skin tone model is based on a plurality of training samples, and wherein the initial skin tone mask comprises a respective value for each of the plurality of pixels indicating a probability that the pixel is a skin pixel;
applying an upper threshold to the initial skin tone mask to identify one or more of the plurality of pixels of the image most likely to be skin pixels;
applying a lower threshold to the initial skin tone mask to identify one or more pixels of the image least likely to be skin pixels;
producing an image-specific skin tone model dependent on the one or more pixels most likely to be skin pixels, and producing an image-specific non-skin model dependent on the one or more pixels least likely to be skin pixels; and
applying the image-specific skin tone model and the image-specific non-skin model to the image to generate a final skin tone mask for the image, wherein the final skin tone mask comprises a respective value indicating a degree of membership in the final skin tone mask for each of the plurality of pixels in the image, and wherein the degree of membership in the final skin tone mask is a function of a similarity in color to the one or more pixels most likely to be skin pixels and the one or more pixels least likely to be skin pixels.
2 Assignments
0 Petitions
Accused Products
Abstract
Systems, methods, and computer-readable storage media for automatically detecting skin tones in an input image are disclosed. An initial skin tone mask for the image may be created dependent on a general skin tone model. An upper threshold and/or a lower threshold may be applied to the initial skin tone mask to identify pixels most likely to be skin pixels and least likely to be skin pixels, respectively. These pixels may be used to produce an image-specific skin tone model, including one or more truncated Gaussian models for skin pixels and/or non-skin pixels defined in a three-dimensional color space. The image-specific skin tone model may be applied to the image to generate a final skin tone mask. Skin tone detection may be automatically or selectively performed in conjunction with image editing or image feature identification operations to target or exclude skin pixels or non-skin pixels during execution of the operations.
66 Citations
33 Claims
-
1. A computer-implemented method, comprising:
-
accessing data representing an image comprising a plurality of pixels; creating an initial skin tone mask for the image dependent on a general skin tone model, wherein the general skin tone model is based on a plurality of training samples, and wherein the initial skin tone mask comprises a respective value for each of the plurality of pixels indicating a probability that the pixel is a skin pixel; applying an upper threshold to the initial skin tone mask to identify one or more of the plurality of pixels of the image most likely to be skin pixels; applying a lower threshold to the initial skin tone mask to identify one or more pixels of the image least likely to be skin pixels; producing an image-specific skin tone model dependent on the one or more pixels most likely to be skin pixels, and producing an image-specific non-skin model dependent on the one or more pixels least likely to be skin pixels; and applying the image-specific skin tone model and the image-specific non-skin model to the image to generate a final skin tone mask for the image, wherein the final skin tone mask comprises a respective value indicating a degree of membership in the final skin tone mask for each of the plurality of pixels in the image, and wherein the degree of membership in the final skin tone mask is a function of a similarity in color to the one or more pixels most likely to be skin pixels and the one or more pixels least likely to be skin pixels. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A non-transitory computer-readable storage medium, storing program instructions computer-executable to implement:
-
accessing data representing an image comprising a plurality of pixels; creating an initial skin tone mask for the image dependent on a general skin tone model, wherein the general skin tone model is based on a plurality of training samples, and wherein the initial skin tone mask comprises a respective value for each of the plurality of pixels indicating a probability that the pixel is a skin pixel; applying an upper threshold to the initial skin tone mask to identify one or more of the plurality of pixels of the image most likely to be skin pixels; applying a lower threshold to the initial skin tone mask to identify one or more pixels of the image least likely to be skin pixels; producing an image-specific skin tone model dependent on the one or more pixels most likely to be skin pixels, and producing an image-specific non-skin model dependent on the one or more pixels least likely to be skin pixels; and applying the image-specific skin tone model and the image-specific non-skin model to the image to generate a final skin tone mask for the image, wherein the final skin tone mask comprises a respective value indicating a degree of membership in the final skin tone mask for each of the plurality of pixels in the image, and wherein the degree of membership in the final skin tone mask is a function of a similarity in color to the one or more pixels most likely to be skin pixels and the one or more pixels least likely to be skin pixels. - View Dependent Claims (19, 20, 21, 22, 23, 24, 25)
-
-
26. A system, comprising:
-
at least one processor; and a memory coupled to the at least one processor, wherein the memory stores program instructions executable by the at least one processor to implement; accessing data representing an image comprising a plurality of pixels; creating an initial skin tone mask for the image dependent on a general skin tone model, wherein the general skin tone model is based on a plurality of training samples, and wherein the initial skin tone mask comprises a respective value for each of the plurality of pixels indicating a probability that the pixel is a skin pixel; applying an upper threshold to the initial skin tone mask to identify one or more of the plurality of pixels of the image most likely to be skin pixels; applying a lower threshold to the initial skin tone mask to identify one or more pixels of the image least likely to be skin pixels; producing an image-specific skin tone model dependent on the one or more pixels most likely to be skin pixels, and producing an image-specific non-skin model dependent on the one or more pixels least likely to be skin pixels; and applying the image-specific skin tone model and the image-specific non-skin model to the image to generate a final skin tone mask for the image, wherein the final skin tone mask comprises a respective value indicating a degree of membership in the final skin tone mask for each of the plurality of pixels in the image, and wherein the degree of membership in the final skin tone mask is a function of a similarity in color to the one or more pixels most likely to be skin pixels and the one or more pixels least likely to be skin pixels. - View Dependent Claims (27, 28, 29, 30, 31, 32, 33)
-
Specification