A makeup supporting device includes: an image acquisition unit that acquires a facial image that is an image obtained by photographing a face; a threshold determining unit that determines a pixel value threshold based on a partial image of the facial image, the partial image being an image in a region that does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow; an eyebrow region extracting unit that extracts an eyebrow region from the facial image using the threshold; an eyebrow eraser that performs eyebrow erasing processing on the facial image, the eyebrow erasing processing being processing of filling in the eyebrow region using preferentially a color on an inner end side of the eyebrow from among colors in regions around the eyebrow region; and a display unit that displays the facial image after the eyebrow erasing processing is performed.
|
10. A makeup supporting method comprising:
acquiring a facial image by photographing a face of a user, by a camera;
determining a pixel value threshold based on a partial image of the facial image, wherein the partial image does not include an outer end of an eyebrow and includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow;
extracting an eyebrow region from the facial image using the pixel value threshold;
performing eyebrow erasing processing on the facial image, wherein the eyebrow erasing processing fills in the eyebrow region preferentially using a color of a peripheral region of the eyebrow region at the inner end of the eyebrow;
selecting a makeup image from makeup information stored in a storage, the makeup image including at least an area in a face and a color to be applied on the area;
generating a simulation image, by superimposing the selected makeup image on the facial image after the eyebrow erasing processing is performed; and
displaying the generated simulation image,
wherein the eyebrow region includes a first pixel and a second pixel that are located adjacent to each other, and
a distance between the first pixel and the inner end is shorter than a distance between the second pixel and the inner end,
wherein, in the eyebrow erasing processing,
a first color value of the first pixel is determined based on color values of first skin pixels that are included in the peripheral region and are located adjacent to the first pixel, and
after the first color value is determined, a second color value of the second pixel is determined based on color values of second skin pixels that are included in the peripheral region and are located adjacent to the second pixel, the second skin pixels including the first pixel having the first color value.
11. A non-transitory computer-readable recording medium storing a program for causing a processor to perform:
acquiring a facial image obtained by photographing a face of a user, by a camera;
determining a pixel value threshold based on a partial image of the facial image, wherein the partial image does not include an outer end of an eyebrow and includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow;
extracting an eyebrow region from the facial image using the pixel value threshold;
performing eyebrow erasing processing on the facial image, wherein the eyebrow erasing processing fills in the eyebrow region preferentially using a color of a peripheral region of the eyebrow region at the inner end of the eyebrow;
selecting a makeup image from makeup information stored in a storage, the makeup image including at least an area in a face and a color to be applied on the area;
generating a simulation image, by superimposing the selected makeup image on the facial image after the eyebrow erasing processing is performed; and
displaying the generated simulation image,
wherein the eyebrow region includes a first pixel and a second pixel that are located adjacent to each other, and
a distance between the first pixel and the inner end is shorter than a distance between the second pixel and the inner end,
wherein, in the eyebrow erasing processing,
a first color value of the first pixel is determined based on color values of first skin pixels that are included in the peripheral region and are located adjacent to the first pixel, and
after the first color value is determined, a second color value of the second pixel is determined based on color values of second skin pixels that are included in the peripheral region and are located adjacent to the second pixel, the second skin pixels including the first pixel having the first color value.
1. A makeup supporting device comprising:
a memory that stores instructions; and
a processor that, when executing the instructions stored in the memory, performs operations comprising:
acquiring a facial image by photographing a face of a user, by a camera;
determining a pixel value threshold based on a partial image of the facial image, wherein the partial image does not include an outer end of an eyebrow and includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow;
extracting an eyebrow region from the facial image using the pixel value threshold;
performing eyebrow erasing processing on the facial image, wherein the eyebrow erasing processing fills in the eyebrow region preferentially using a color of a peripheral region of the eyebrow region at the inner end of the eyebrow;
selecting a makeup image from makeup information stored in a storage, the makeup image including at least an area in a face and a color to be applied on the area;
generating a simulation image, by superimposing the selected makeup image on the facial image after the eyebrow erasing processing is performed; and
displaying the generated simulation image,
wherein the eyebrow region includes a first pixel and a second pixel that are located adjacent to each other, and
a distance between the first pixel and the inner end is shorter than a distance between the second pixel and the inner end,
wherein, in the eyebrow erasing processing,
a first color value of the first pixel is determined based on color values of first skin pixels that are included in the peripheral region and are located adjacent to the first pixel, and
after the first color value is determined, a second color value of the second pixel is determined based on color values of second skin pixels that are included in the peripheral region and are located adjacent to the second pixel, the second skin pixels including the first pixel having the first color value.
2. The makeup supporting device according to
the makeup image stored in the makeup information includes an eyebrow makeup image indicating an area of an eyebrow makeup and a color to be applied in the area of the eyebrow makeup,
the simulation image is generated by superimposing the eyebrow makeup image on the facial image on which the eyebrow erasing processing has already been performed, and
the generated simulation image is displayed.
3. The makeup supporting device according to
4. The makeup supporting device according to
5. The makeup supporting device according to
a color of an image, in which the eyebrow region is deleted from the facial image, is sequentially interpolated in a direction from an upper side of the eyebrow toward a lower side of the eyebrow in the first processing,
the color of the image, in which the eyebrow region is deleted from the facial image, is sequentially interpolated in a direction from the lower side of the eyebrow toward the upper side of the eyebrow in the second processing,
a first image obtained by the first processing and a second image obtained by the second processing are combined in the third processing, and
in the third processing, the first image and the second image are combined with a combination ratio corresponding to a position of the eyebrow region.
6. The makeup supporting device according to
extracting eyebrow feature points and eye feature points from the facial image,
wherein the eyebrow region is extracted from an eyebrow vicinity region in the facial image,
wherein the eyebrow vicinity region is obtained by excluding an eye including region from an eyebrow including region, the eye including region being a set of small regions based on positions of the eye feature points, the eyebrow including region being a set of small regions based on positions of the eyebrow feature points.
7. The makeup supporting device according to
an image of the eyebrow region in the rectangular region on which the eyebrow erasing processing has already been performed is pasted into a region of the facial image corresponding to the eyebrow region in the rectangular region.
8. The makeup supporting device according to
9. The makeup supporting device according to
the camera photographs a video image of the face of the user, and
the simulation image is sequentially displayed along the video image.
12. The makeup supporting device according to
13. The makeup supporting device according to
R=r2×α+r1×(1−α); G=g2×α+g1×(1−α); and B=b2×α+b1×(1−α) where, r1, g1, and b1 are RGB values in a region of the facial image on which the eyebrow erasing processing has already been performed; r2, g2, and b2 are RGB values in a region of the selected makeup image; R, G, and B are RGB values in a corresponding region of the simulation image; and α is a predetermined value determined based on makeup density.
14. The makeup supporting device according to
where f indicates a pixel value of each pixel, m indicates 1 when a pixel is a skin pixel, and 0 when a pixel is in the eyebrow region, and h is an interpolation coefficient.
|
1. Field of the Invention
The present disclosure relates to a makeup supporting device, a makeup supporting method, and a non-transitory computer-readable recording medium for supporting facial makeup.
2. Description of the Related Art
Nowadays, a way of facial makeup (hereinafter, simply referred to as “makeup”) is diversifying. It is difficult, particularly for a person who has insufficient knowledge about the makeup, to select proper makeup from countless options. This is because it takes an enormous amount of time and effort to actually try every makeup to determine and compare the makeup.
In view of the above, for example, PTLs 1 and 2 disclose technologies for generating and presenting a simulation image of a face when makeup is applied. In the technologies of PTLs 1 and 2, there is acquired an image obtained by photographing a face of a makeup target (hereinafter, simply referred to as a “face”) (hereinafter, such an image is referred to as a “facial image”). In the technologies of PTLs 1 and 2, an image indicating a state in which the makeup is applied to the face is superimposed on the facial image to generate a simulation image and display the generated simulation image.
According to the technologies of PTLs 1 and 2, suitability of the makeup can be determined without actually applying the makeup. That is, the proper makeup can be selected with less time and effort.
Meanwhile, in the actual makeup, it is popularly practiced that eyebrow-paint is applied after eyebrow hairs are removed. In generating the simulation image for such makeup, desirably the facial image is prepared with no eyebrow.
In view of the above, for example, PTLs 3 and 4 disclose technologies for erasing the eyebrows from the facial image. In the technology of PTL 3, a designation of an eyebrow region in the facial image is received from a user, and a color identical to that of a neck region in the facial image is applied to a slightly wide region including the eyebrow region. In the technology of PTL 4, an eyebrow contour is searched in the facial image, and slightly wide region including a region surrounded by the eyebrow contour is filled with a color around the eyebrow contour.
According to the technologies of PTLs 3 and 4, the eyebrow-less facial image can be obtained without actually removing the eyebrow hairs.
However, in the conventional technologies of PTLs 3 and 4, there is a possibility of generating an unnatural facial image largely different from the facial image in a case where the eyebrow hairs are actually removed.
The reason is as follows. A skin color near the eyebrow is often different from a skin color of the neck region. For this reason, in the technology of PTL 3, there is a possibility that only the color in the eyebrow region does not match. Moreover, bangs often cover the area near the eyebrow, particularly on an outer end side of the eyebrow. For this reason, in the technology of PTL 4, there is a possibility that the color in the eyebrow region is filled with the skin color mixed with a color of the hair. In both the technologies of PTLs 3 and 4, there is a possibility that a false region is determined or detected as the eyebrow region so that the eyebrow color remains partially or an eye region is filled in.
In the case where the facial image after processing of erasing the eyebrows (hereinafter, referred to as an “image in which the eyebrows are erased”) becomes unnatural, the simulation image also becomes unnatural, and thus it is difficult for the user to determine suitability of the makeup. For this reason, it is desirable to obtain the image as similar to the state in which the eyebrow hairs are actually removed as possible.
One non-limiting and exemplary embodiment provides a makeup supporting device, a makeup supporting method, and a non-transitory computer-readable recording medium for being able to obtain an image closer to the state in which the eyebrow hairs are actually removed.
In one general aspect, the techniques disclosed here feature a makeup supporting device includes: an image acquisition unit that acquires a facial image that is an image obtained by photographing a face; a threshold determining unit that determines a pixel value threshold based on a partial image of the facial image, the partial image being an image in a region that does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow; an eyebrow region extracting unit that extracts an eyebrow region from the facial image using the threshold; an eyebrow eraser that performs eyebrow erasing processing on the facial image, the eyebrow erasing processing being processing of filling in the eyebrow region using preferentially a color on an inner end side of the eyebrow from among colors in regions around the eyebrow region; and a display unit that displays the facial image after the eyebrow erasing processing is performed.
Accordingly, the facial image closer to the state in which the eyebrow hairs are actually removed can be obtained in the present disclosure.
Additional benefits and advantages of the disclosed embodiments will become apparent from the specification and drawings. The benefits and/or advantages may be individually obtained by the various embodiments and features of the specification and drawings, which need not all be provided in order to obtain one or more of such benefits and/or advantages.
It should be noted that general or specific embodiments may be implemented as a system, a method, an integrated circuit, a computer program, a storage medium a, or any selective combination thereof.
Exemplary embodiments of the present disclosure will be described in detail below with reference to the drawings.
First Exemplary Embodiment
A first exemplary embodiment of the present disclosure is an example of a basic mode of the present disclosure.
Referring to
Image acquisition unit 220 acquires a facial image that is an image obtained by photographing a face. For example, the face to be photographed is a face of a makeup target.
In order to define an eyebrow region, threshold determining unit 240 determines a pixel value threshold based on a partial image of the facial image acquired by image acquisition unit 220, the partial image being an image in a region which does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow.
Using the threshold determined by threshold determining unit 240, eyebrow region extracting unit 250 extracts the eyebrow region from the facial image acquired by image acquisition unit 220.
Eyebrow eraser 260 performs eyebrow erasing processing. The eyebrow erasing processing is processing of filling in the eyebrow region on the facial image using preferentially a color on an inner end side of the eyebrow from among colors of regions around the eyebrow region extracted by eyebrow region extracting unit 250.
Display unit 300 displays the facial image after eyebrow eraser 260 performs the eyebrow erasing processing.
Although not illustrated, for example, makeup supporting device 100 includes a CPU (Central Processing Unit), a storage medium such as a ROM (Read Only Memory) in which a control program is stored, and a working memory such as a RAM (Random Access Memory). In this case, the CPU executes the control program to implement a function of each of the above units.
Makeup supporting device 100 can extract and fill in the eyebrow region based on image information about a region on the inner end side of the eyebrow, the region being closer to the eyebrow and having a higher possibility that the hair does not cover the eyebrow. Accordingly, makeup supporting device 100 can more accurately extract the eyebrow region, and fill the eyebrow region with a more proper color. Therefore, makeup supporting device 100 can obtain an image in which eyebrows are erased, the image being closer to the facial image in the case where eyebrow hairs are actually removed.
Second Exemplary Embodiment
A second exemplary embodiment of the present disclosure is an example of a specific mode of the present disclosure. The second exemplary embodiment is an example in which the present disclosure is applied to a device including a digital video camera and a touch-panel-equipped display.
<Description of Term>
Terms used in the second exemplary embodiment will now be described.
“Facial components” mean parts constituting the face such as an eye, an eyebrow, a nose, a cheekbone, a lip, and a contour.
A “facial component ID” means identification information on each of the facial components.
“Facial component regions” mean regions occupied by the facial components on an image or a real space, and include positions of feature points of the facial components, such as the inner end of the eyebrow, and the outer end of the eyebrow, an inner corner of an eye, and an outer corner of the eye.
“Makeup” means makeup ways (kinds), such as eyebrow-paint and eye shadow, which correct an impression of a feature of the facial components to enhance appearance, and the makeup includes at least a dye color, an application density, and an application area.
“Makeup information” means information indicating details of the makeup, and includes at least information (information indicating a difference from a facial color) necessary for the generation of the image, in which the makeup is applied to the face, from the facial image.
“Makeup types” mean makeup kinds including “foundation”, “eyebrow-paint”, “eye shadow”, “lipstick”, and “cheek makeup”, which are distinguished by a positional relationship with at least the facial components.
A “makeup ID” means identification information on each of the makeup.
A “makeup image” means an image indicating a makeup state in which the makeup is applied to the face.
<Configuration of Makeup Supporting Device>
A configuration of the makeup supporting device according to the second exemplary embodiment will be described below.
Referring to
An example of photographing unit 210 includes a digital video camera, and photographing unit 210 photographs a video image of the face becoming a makeup simulation target. Photographing unit 210 then outputs the photographed video image to image acquisition unit 220. The video image includes a plurality of time-series images (frame images). In the second exemplary embodiment, it is assumed that the face becoming the makeup simulation target is a face of a user using makeup supporting device 100.
Image acquisition unit 220 sequentially acquires the images constituting the video image from the input video image. Image acquisition unit 220 then outputs the acquired image (hereinafter, referred to as a “photographed image”) to facial component acquisition unit 230. Herein, image acquisition unit 220 desirably performs image processing of mirror-reversing the photographed image in order to give the user a feeling of applying the makeup while looking into a mirror. In addition, the photographed image includes a part of the image of the face becoming the makeup simulation target (hereinafter, referred to as a “facial image”).
Facial component acquisition unit 230 acquires a facial component region of the face from the input image. For example, the facial component region is acquired by matching of each partial region of the image with a template of each of previously-prepared facial components (for example, see PTL 5). Herein, the acquisition of the facial component region includes the extraction of feature points of each of the facial components (hereinafter, referred to as a “facial feature points”), including eyebrow feature points and eye feature points. Facial component acquisition unit 230 then outputs facial component information to threshold determining unit 240 together with the photographed image. As used herein, the facial component information means information indicating the identification information and the regions of the acquired facial components (including identification information and positions of the facial feature points).
Threshold determining unit 240 extracts a threshold determining image from the facial image. The threshold determination image includes a region used to determine a later-described binarization threshold. In the second exemplary embodiment, the threshold determination image is an image in a region, which does not include the outer end of the eyebrow but includes the inner end of the eyebrow and the periphery of the inner end of the eyebrow, in the facial image. The threshold determination image is also an image in a region that has a predetermined size and shape based on a position of the inner end of the eyebrow.
Then, threshold determining unit 240 determines a binarization threshold based on the extracted threshold determination image on the assumption that the image includes only the skin region and the eyebrow region. As used herein, the binarization threshold means the pixel value threshold used to define the eyebrow region. Threshold determining unit 240 then outputs the determined binarization threshold to eyebrow region extracting unit 250 together with the photographed image and the facial component information. A threshold determination image extracting technique and a binarization threshold determining technique are described in detail later.
Eyebrow region extracting unit 250 estimates an intermediate region in the photographed image using the facial component information. As used herein, the intermediate region means a rough region occupied by the eyebrow. Eyebrow region extracting unit 250 binarizes the photographed image using a binarization threshold. Then, eyebrow region extracting unit 250 estimates the eyebrow region in the photographed image based on an edge of the binary image included in the estimated intermediate region. Hereinafter, the estimated eyebrow region (that is, the eyebrow region defined by the binarization threshold) is referred to as a “binary eyebrow region”.
Moreover, eyebrow region extracting unit 250 extracts a region where the binary eyebrow region is expanded, as the final eyebrow region. Hereinafter, the region extracted as the final eyebrow region is simply referred to as an “eyebrow region”. Threshold determining unit 240 then outputs information indicating the eyebrow region (hereinafter, referred to as “eyebrow region information”) to eyebrow eraser 260 together with the photographed image and the facial component information. An intermediate region estimating technique and an eyebrow region extracting technique are described in detail later.
Eyebrow eraser 260 performs the eyebrow erasing processing of filling in the eyebrow region on the facial image based on the photographed image, the facial component information, and the eyebrow region information. In the second exemplary embodiment, the eyebrow erasing processing is processing of filling in the eyebrow region on the facial image using preferentially the color on the inner end side of the eyebrow from among colors of regions around the eyebrow region. More specifically, for example, the eyebrow erasing processing is processing of sequentially interpolating the color of the image in which the image of the eyebrow region is deleted from the facial image, in a direction from the inner end side of the eyebrow toward the outer end side of the eyebrow. Eyebrow eraser 260 then outputs the photographed image on which the eyebrow erasing processing is already performed (hereinafter, referred to as an “image in which the eyebrows are erased”) to makeup presentation unit 290 together with the facial component information. The eyebrow erasing processing is described in detail later.
A makeup table and a makeup information table are stored in makeup information storage 270. The makeup table defines a plurality of makeup patterns that are makeup patterns of the whole face. In the makeup information table, the makeup information is described in each makeup type constituting the makeup pattern. The makeup information means information in which details of makeup are described while associated with the facial component region (the positions of the facial feature points). Contents of the makeup table and makeup information table are described in detail later.
Makeup selector 280 receives a user's selection manipulation to select one makeup pattern from the plurality of makeup patterns described in the makeup information table. For example, the selection manipulation is performed through the touch-panel-equipped display. Then, makeup selector 280 acquires the makeup information corresponding to the selected makeup pattern from the makeup information table, and outputs the acquired makeup information to makeup presentation unit 290.
Makeup presentation unit 290 generates a simulation image based on the makeup information. The simulation image is obtained by superimposing the makeup image on the image in which the eyebrows are erased. For example, the makeup that becomes the simulation image generation target includes the makeup of the eyebrow. Makeup presentation unit 290 then outputs the generated simulation image to display unit 300. A simulation image generating technique is described in detail later.
For example, display unit 300 includes a display part of the touch-panel-equipped display. Display unit 300 displays the simulation image based on image data of the input simulation image. More specifically, display unit 300 sequentially displays the simulation image along the photographed video image.
Although not illustrated, for example, makeup supporting device 100 includes a CPU, a storage medium such as a ROM in which the control program is stored, and a working memory such as a RAM. In this case, the CPU executes the control program to implement a function of each of the above units.
Makeup supporting device 100 can extract and fill in the eyebrow region based on image information about a region on the inner end side of the eyebrow, the region being closer to the eyebrow and having a higher possibility that the hair does not cover the eyebrow.
The partial image extracting technique, the binarization threshold determining technique, the intermediate region extracting technique, the eyebrow region extracting technique, the eyebrow erasing processing, the contents of the makeup table, and the contents of the makeup information table will be described in turn in detail below.
<Threshold Determination Image Extracting Technique>
As illustrated in
As illustrated in
As illustrated in
The threshold determination image thus extracted has a low possibility of including the eye and bangs, and therefore the threshold determination image has a feature of a high possibility of including only the skin region and the eyebrow region. Moreover, the region having a predetermined size and shape is easily set based on the position of the inner end of the eyebrow. Accordingly, threshold determining unit 240 can easily set the region having the high possibility of including only the skin region and the eyebrow region as the region used to determine the binarization threshold.
Herein, in the threshold determination image extracted by the technique illustrated in
<Binarization Threshold Determining Technique>
For example, using a technique called Otsu's binarization (also called an “Otsu technique” or a “discriminant analysis method”), threshold determining unit 240 obtains the binarization threshold that is a threshold suitable for defining the eyebrow region based on the extracted threshold determination image. The Otsu's binarization is a technique of determining a proper threshold in the case where a set of given values is classified into two classes (for example, see NPL 1). Thus, the eyebrow can accurately be extracted irrespective of the skin color and the eyebrow color when not a fixed value but a proper value selected from the image is used as the binarization threshold.
When the binarization threshold is determined by the technique, the binary image is obtained in subsequent eyebrow region extracting unit 250 such that a boundary between the eyebrow and the skin constitutes the edge.
<Intermediate Region Estimating Technique>
As illustrated in
Therefore, eyebrow region extracting unit 250 estimates the intermediate region based on an eyebrow including region and an eye including region. As used herein, the eyebrow including region means a region which includes the whole eyebrow and is estimated from the positions of the facial feature points of the eyebrow. Moreover, the eye including region means a region which includes the whole eye and is estimated from the positions of the facial feature points of the eye.
As illustrated in
In binary image 421 of
Herein, for example, a maximum distance between the facial feature points adjacent to each other, such as a distance between the facial feature point corresponding to the highest point of the arch of the eyebrow and the facial feature point on inner end side of the eyebrow on the lower side of the eyebrow, or a distance between the two facial feature points on the upper side of the eyebrow, may be used as a diameter of small region 432 associated with the eyebrow. However, there is a high possibility that the hair is located close to a surrounding area of the outer end of the eyebrow. Moreover, in the eyebrow, usually a part closer to the inner or outer end of the eyebrow is narrower than other parts. Accordingly, only the diameter of small region 432 is desirably set smaller than other regions with respect to the facial feature point of the outer end (and inner end) of the eyebrow (for example, a half diameter). Accordingly, the parts such as the hair and the like other than the eyebrow are not included in small region 432 associated with the eyebrow.
For example, the diameter of small region 442 associated with the eye may be set to a distance between the facial feature point corresponding to a center on the upper side of the eye and the facial feature point corresponding to a center on the lower side of the eye.
When small regions 432 and 442 are set to these sizes, the eyebrow region is more surely included in the intermediate region, but the eye region is more surely not included in the intermediate region.
Herein, the position at a center point of each of small regions 432 and 442 is not necessarily matched with the facial feature point, but small regions 432 and 442 may be located so as to include the eyebrow region and the eye region in consideration of the diameters, respectively. For example, the positions at the center points of small regions 432 associated with the eyebrow may be disposed along a center line of the eyebrow that is estimated based on the eyebrow feature points. In this case, for example, a number of small regions 432 associated with the eyebrow is set to seven, and small regions 432 associated with the eyebrow are disposed at equal intervals on the center line of the eyebrow. Then, the diameter of small region 432 associated with the eyebrow is set to two-thirds of the distance between the two facial feature points on the upper side of the eyebrow. Note that, even in this case, the diameter of small region 432 is desirably set smaller than other regions with respect to the facial feature point of the outer end (and inner end) of the eyebrow (for example, a half diameter).
Through the technique, eyebrow region extracting unit 250 can set the region to the intermediate region with less processing load such that the eyebrow region is more surely included in the region, and such that the eye region is more surely not included in the region. Eyebrow region extracting unit 250 can accurately extract the eyebrow region by searching the edge of the eyebrow in the intermediate region of the binary image.
However, because actually a boundary between the eyebrow and the skin is indistinct, sometimes the edge of the eyebrow of the binary image is located inside an outer rim of the actual eyebrow.
Therefore, based on the binary eyebrow region estimated from the binary image, eyebrow region extracting unit 250 more surely extracts the region including the outer rim of the actual eyebrow as the eyebrow region.
<Eyebrow Region Extracting Technique>
For example, binary eyebrow region 451 is estimated from the binary image as illustrated in
Eyebrow region extracting unit 250 expands binary eyebrow region 451 illustrated in
Herein, an expansion amount (width, the number of stages, or the number of pixels) may be a fixed value or a variable value. For example, eyebrow region extracting unit 250 may vary the expansion amount according to the distance between the inner ends of the left and right eyebrows. However, desirably the expansion amount is set to the range not to include the eye region and the region of the hair.
Through the technique, eyebrow region extracting unit 250 can extract the region more surely including the actual eyebrow region as the eyebrow region.
<Eyebrow Erasing Processing>
First, eyebrow eraser 260 deletes the eyebrow region from the photographed image by initializing the pixel value in the eyebrow region with respect to the photographed image. Then, eyebrow eraser 260 moves a frame of 2w+1 (w is an integer of 1 or more, for example, w is 2) pixels×2w+1 pixels on the photographed image. In the case where the center pixel of the frame (hereinafter, referred to as an “interpolation frame”) is the pixel in the eyebrow region, eyebrow eraser 260 interpolates a pixel value (color) of the center pixel using a pixel value (color) in a region other than the eyebrow region (hereinafter, also referred to as a “non-eyebrow region”) located in the interpolation frame.
Eyebrow eraser 260 generates an eyebrow mask in order to delete the eyebrow region from the photographed image.
As illustrated in
In the example of
Specifically, eyebrow eraser 260 calculates the pixel value g(x, y) of the center pixel (x, y) of interpolation frame 461 using the following equation (1).
Where h is an interpolation coefficient. In the case where an average value of the pixel values in the non-eyebrow region of interpolation frame 461 is used in the interpolation, interpolation coefficient h is interpolation coefficient havg(x, y), and expressed by the following equation (2).
Then, eyebrow mask 471 rewrites the eyebrow mask value m of the pixel of eyebrow mask 471 into “1” every time the pixel in the eyebrow region is interpolated. This pixel interpolation result is used to interpolate the pixel value in another eyebrow region.
Eyebrow eraser 260 interpolates the pixel in the eyebrow region while moving the interpolation frame 461 from the inner end side of the eyebrow toward the outer end side of the eyebrow, thereby performing the eyebrow erasing processing.
Eyebrow eraser 260 interpolates the pixel of the eyebrow region while moving interpolation frame 461 using first pattern 482 and second pattern 483 with respect to the whole image in rectangular region 481 including eyebrow region 452.
First pattern 482 is a moving pattern that moves a line, in which interpolation frame 461 is moved, from the upper side of the eyebrow toward the lower side of the eyebrow. In first pattern 482, the interpolation is mainly performed based on the skin color on the upper side of the eyebrow. That is, the processing of interpolating the pixel in the eyebrow region using first pattern 482 is processing (first processing) of sequentially interpolating the color of the image in which the image of eyebrow region 452 is deleted from the facial image, in the direction from the upper side of the eyebrow toward the lower side of the eyebrow.
Second pattern 483 is a moving pattern that moves a line, in which interpolation frame 461 is moved, from the lower side of the eyebrow toward the upper side of the eyebrow. In second pattern 483, the interpolation is mainly performed based on the skin color on the lower side of the eyebrow. That is, the processing of interpolating the pixel in the eyebrow region using second pattern 483 is processing (second processing) of sequentially interpolating the color of the image in which the image of eyebrow region 452 is deleted from the facial image, in the direction from the lower side of the eyebrow toward the upper side of the eyebrow.
Herein, in the following description, it is assumed that d1 is a distance from the upper end of rectangular region 481 to the upper end of eyebrow region 452, and that d2 is a distance from the upper end of rectangular region 481 to the lower end of eyebrow region 452.
Eyebrow eraser 260 independently interpolates the eyebrow region using both first pattern 482 and second pattern 483, and combines two results obtained by both first pattern 482 and second pattern 483. That is, eyebrow eraser 260 combines a first image obtained by first pattern 482 (first processing) and a second image obtained by second pattern 483 (second processing).
More specifically, for example, eyebrow eraser 260 calculates finally-interpolated pixel value G(x, y) in the eyebrow region using the following equation (3) of alpha (α) blend. Where g1(x, y) is a pixel value (color) interpolated by the movement of rectangular region 481 using first pattern 482. Where, g2(x, y) is a pixel value (color) interpolated by the movement of rectangular region 481 using second pattern 483.
[Mathematical expression 3]
G(x,y)=α(x,y)g1(x,y)+{1−α(x,y)}g2(x,y) (3)
An α value is used to determine a ratio in combining the pixel value g1(x, y) and the pixel value g2(x, y), and corresponds to a weight of the pixel value g1(x, y). For example, the α value is a variable value corresponding to the pixel position.
As indicated by line segment 491 in
Herein, for example, the α value is expressed by the following equation (4).
Even if the upper side and lower side of the eyebrow region differ from each other in the skin color, the setting of the α value enables eyebrow eraser 260 to interpolate each pixel in the eyebrow region such that the color changes continuously between the colors on the upper side and lower side of the eyebrow region. That is, eyebrow eraser 260 can determine the pixel value of each pixel with the color closer to the skin color in the eyebrow region where the eyebrow hairs are actually erased. As a result, eyebrow eraser 260 can more naturally erase the eyebrow.
Herein, the upper end (d1) in eyebrow region 452 and the lower end (d2) in eyebrow region 452 may be set to the upper end and lower end of a pixel group having the identical x-coordinate value in eyebrow region 452. That is, eyebrow eraser 260 may finely divide eyebrow region 452 in the vertical direction, and determine the α value based on the upper end and lower end of eyebrow region 452 in each divided region. This corresponds to the combination of the first image obtained by first pattern 482 (first processing) and the second image obtained by second pattern 483 (second processing) with a combination ratio corresponding to the position relative to eyebrow region 452. In this case, eyebrow eraser 260 can more accurately exclude the non-eyebrow region adjacent to the eyebrow region from the target of the alpha blend processing.
Eyebrow eraser 260 pastes only an image part of the eyebrow region 452 in the image obtained as a combination result to a corresponding part of the original photographed image. That is, in the image of rectangular region 481 on which the eyebrow erasing processing is already performed, eyebrow eraser 260 pastes the image of eyebrow region 452 to the corresponding region of the photographed image.
<Contents of Makeup Table and Makeup Information Table>
As illustrated in
Herein, makeup selector 280 receives the makeup selection manipulation from the user by displaying the text information such as “cute” and “cool” of makeup pattern 501 as an option.
As illustrated in
Makeup ID 511 corresponds to makeup ID 502 (see
A set of color 513, density 514, and area 515 includes at least information necessary for visualization of a state in which the makeup is applied to the face. That is, in the second exemplary embodiment, it is assumed that the makeup information includes at least information (information indicating a difference from the facial color) necessary for the generation of the image, in which the makeup is applied to the face, from the facial image.
A latest makeup changes quickly, and makeup to be presented also changes quickly. Therefore, for example, desirably makeup table 500 and makeup information table 510 are periodically updated from a server on the Internet through a communication circuit (not illustrated) provided in makeup supporting device 100. Makeup table 500 illustrated in
<Simulation Image Generating Technique>
Makeup presentation unit 290 generates the simulation image by superimposing the makeup image of the selected makeup on the image in which the eyebrows are erased. For example, the makeup image is generated based on the facial component information and the makeup information.
Herein, for example, the image superimposition in the simulation image is performed by well-known image combination processing such as alpha (α) blend processing. In this case, the α value is set to a value corresponding to the makeup density. For example, the alpha blend processing is expressed by the following equations (5) to (7). Where r1, g1, and b1 are RGB values in any region of the image in which the eyebrows are erased. Where, r2, g2, and b2 are RGB values in any region of the makeup image. Where, R, G, and B are RGB values in the corresponding region of the simulation image.
R=r2×α+r1×(1−α) (5)
G=g2×α+g1×(1−α) (6)
B=b2×α+b1×(1−α) (7)
Moreover, it is assumed that order in a case where makeup is applied to the face several times (hereinafter, such order is referred to as “application order”) is set to each makeup, and that the makeup image is a hatching image having density corresponding to the makeup density. For example, the application order defines that cheek application should be performed after foundation application. In this case, makeup presentation unit 290 may perform superimposition of the image in such a manner that the makeup images are overlaid on the image in which the eyebrows are erased, according to the application order.
<Operation of Makeup Supporting Device>
Operation of makeup supporting device 100 will be described below.
First, in step S1100, photographing unit 210 starts the photographing of the video image of the user's face, and image acquisition unit 220 starts the acquisition of the image constituting the photographed video image. At this point, desirably the user puts up the bangs. Then, facial component acquisition unit 230 starts the acquisition of the facial components of the face included in the image.
At this point, for example, facial component acquisition unit 230 analyzes the image to extract the facial feature points from the image. Facial component acquisition unit 230 acquires the regions formed by the facial feature points constituting the identical facial components as the facial component regions. Facial component acquisition unit 230 generates the facial component information from the acquired facial component regions.
As illustrated in
As illustrated in
Then, in step S1200 of
Then, in step S1300, threshold determining unit 240 extracts the threshold determination image (for example, the region surrounded by rectangular region 413 in
Then, in step S1400, threshold determining unit 240 determines the binarization threshold based on the threshold determination image extracted in step S1300.
Then, in step S1500, eyebrow region extracting unit 250 generates the binary image (for example, binary image 421 in
Then, in step S1600, eyebrow region extracting unit 250 extracts the eyebrow region from the binary image and the intermediate region. At this point, as described above, eyebrow region extracting unit 250 expands the binary eyebrow region (for example, binary eyebrow region 451 in
Then, in step S1700, eyebrow eraser 260 performs the eyebrow erasing processing (see
As illustrated in
Then, in step S1800 of
As illustrated in
The region of eyebrow-paint 641 is largely different from the region of original eyebrows 612 (see
Then, in step S1900 of
Herein, makeup supporting device 100 may use, for the subsequent image, the tentatively-obtained eyebrow region and interpolation results of the eyebrow region. In this case, for example, eyebrow eraser 260 stores the position of the eyebrow region relative to the facial feature points. As to other facial images, eyebrow eraser 260 moves or deforms the image in the eyebrow region based on the stored relative position according to the positions of the facial feature points in the facial image.
In this case, the pieces of processing in steps S1300 to S1700 of
<Effects of Second Exemplary Embodiment>
As described above, makeup supporting device 100 of the second exemplary embodiment can extract and fill in the eyebrow region based on the image information about the region on the inner end side of the eyebrow, the region being closer to the eyebrow and having a higher possibility that the hair does not cover the eyebrow. Accordingly, makeup supporting device 100 can more accurately extract the eyebrow region, and fill the eyebrow region with the more proper color. Therefore, makeup supporting device 100 can obtain the image in which eyebrows are erased, the image being closer to the facial image in the case where eyebrow hairs are actually removed.
Makeup supporting device 100 of the second exemplary embodiment displays the simulation image for the makeup using the image in which the eyebrows are erased, the image being closer to the facial image in the case where eyebrow are actually removed. Therefore, makeup supporting device 100 enables the user to more properly determine the suitability of makeup.
<Another Makeup Selecting Technique>
The makeup selecting technique is not limited to the above example. For example, makeup selector 280 may automatically select the makeup suitable for the feature of the face or the latest makeup.
<Modifications of Other Configurations>
The various tables may not necessarily be stored in makeup supporting device 100. For example, in the case where makeup supporting device 100 can be connected to a network, makeup supporting device 100 may select the makeup by accessing a server, in which the table is stored, on the network.
For example, makeup supporting device 100 may be such a distributed arrangement system that only photographing unit 210 and display unit 300 from among the functional units illustrated in
Moreover, makeup supporting device 100 may detect natural light, and acquire the facial feature points or detect the eyebrow region while an influence of the natural light is reduced from the image.
Makeup supporting device 100 may not necessarily generate the simulation image for the makeup.
Makeup supporting device 100 may present information on cosmetics necessary for the makeup to the user together with the simulation image.
A makeup supporting device of the present disclosure includes: an image acquisition unit that acquires a facial image that is an image obtained by photographing a face; a threshold determining unit that determines a pixel value threshold based on a partial image of the facial image, the partial image being an image in a region that does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow; an eyebrow region extracting unit that extracts an eyebrow region from the facial image using the threshold; an eyebrow eraser that performs eyebrow erasing processing on the facial image, the eyebrow erasing processing being processing of filling in the eyebrow region using preferentially a color on an inner end side of the eyebrow from among colors of regions around the eyebrow region; and a display unit that displays the facial image after the eyebrow erasing processing is performed.
Note that, the makeup supporting device may further include a makeup presentation unit that generates a simulation image by superimposing an image indicating a state of eyebrow makeup applied to the face on the facial image on which the eyebrow erasing processing is already performed. In the makeup supporting device, the display unit may display the simulation image.
In addition, in the makeup supporting device, the partial image may be an image in a region that has a predetermined size and shape based on a position of the inner end of the eyebrow.
In addition, in the makeup supporting device, the eyebrow erasing processing may be processing of sequentially interpolating a color of an image in which an image of the eyebrow region is deleted from the facial image, in a direction from the inner end side of the eyebrow toward an outer end side of the eyebrow.
In addition, in the makeup supporting device, the eyebrow erasing processing may include first processing, second processing, and third processing, the color of the image in which the image of the eyebrow region is deleted from the facial image being sequentially interpolated in a direction from an upper side of the eyebrow toward a lower side of the eyebrow in the first processing, the color of the image in which the image of the eyebrow region is deleted from the facial image being sequentially interpolated in a direction from the lower side of the eyebrow toward the upper side of the eyebrow in the second processing, a first image obtained by the first processing and a second image obtained by the second processing being combined in the third processing, and, in the third processing, the first image and the second image may be combined with a combination ratio corresponding to a position of the eyebrow region.
In addition, the makeup supporting device may further include a facial component acquisition unit that extracts eyebrow feature points and eye feature points from the facial image. In the makeup supporting device, the eyebrow region extracting unit may extract the eyebrow region from an intermediate region in the region of the facial image, an eye including region being excluded from an eyebrow including region in the intermediate region, the eye including region being a set of small regions based on positions of the eye feature points, the eyebrow including region being a set of small regions based on positions of the eyebrow feature points.
In addition, in the makeup supporting device, the eyebrow eraser may perform the eyebrow erasing processing on a whole image of a rectangular region including the eyebrow region of the facial image, and paste the image of the eyebrow region in the image of the rectangular region on which the eyebrow erasing processing is already performed into the region corresponding to the facial image.
In addition, in the makeup supporting device, the eyebrow region extracting unit may extract a region where the eyebrow region defined by the threshold is expanded as the eyebrow region.
The makeup supporting device may further include a photographing unit that photographs a video image of the face. In the makeup supporting device, the image acquisition unit may acquire an image constituting the video image, and the display unit may sequentially display the simulation image along the video image.
A makeup supporting method of the present disclosure includes: acquiring a facial image that is an image obtained by photographing a face; determining a pixel value threshold based on a partial image of the facial image, the partial image being an image in a region that does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow; extracting an eyebrow region from the facial image using the threshold; performing eyebrow erasing processing on the facial image, the eyebrow erasing processing being processing of filling in the eyebrow region using preferentially a color on an inner end side of the eyebrow from among the colors in regions around the eyebrow region; and displaying the facial image after the eyebrow erasing processing is performed.
A non-transitory computer-readable recording medium of the present disclosure stores a program for causing a device including a processor to perform: processing of acquiring a facial image that is an image obtained by photographing a face; processing of determining a pixel value threshold based on a partial image of the facial image, the partial image being an image in a region that does not include an outer end of an eyebrow but includes an inner end of the eyebrow and a periphery of the inner end of the eyebrow; processing of extracting an eyebrow region from the facial image using the threshold; processing of performing eyebrow erasing processing on the facial image, the eyebrow erasing processing being processing of filling in the eyebrow region using preferentially a color on an inner end side of the eyebrow from among colors in regions around the eyebrow region; and processing of displaying the facial image after the eyebrow erasing processing is performed.
The present disclosure is usefully applied to a makeup supporting device, a makeup supporting method, and a non-transitory computer-readable recording medium for being able to obtain an image in which eyebrows are erased, the image being closer to a state in which eyebrow hairs are actually removed.
Yamanashi, Tomofumi, Izumi, Keiko, Gouda, Youichi
Patent | Priority | Assignee | Title |
10321748, | Mar 15 2013 | Shiseido Company, Limited | Systems and methods for specifying and formulating customized topical agents |
10939742, | Jul 13 2017 | Shiseido Company, Limited | Systems and methods for virtual facial makeup removal and simulation, fast facial detection and landmark tracking, reduction in input video lag and shaking, and a method for recommending makeup |
11000107, | Jul 13 2017 | Shiseido Company, Limited | Systems and methods for virtual facial makeup removal and simulation, fast facial detection and landmark tracking, reduction in input video lag and shaking, and method for recommending makeup |
11039675, | Jul 13 2017 | Shiseido Company, Limited | Systems and methods for virtual facial makeup removal and simulation, fast facial detection and landmark tracking, reduction in input video lag and shaking, and method for recommending makeup |
11344102, | Jul 13 2017 | Shiseido Company, Limited | Systems and methods for virtual facial makeup removal and simulation, fast facial detection and landmark tracking, reduction in input video lag and shaking, and a method for recommending makeup |
11445803, | Mar 15 2013 | Shiseido Company, Limited | Systems and methods for specifying and formulating customized topical agents |
9984282, | Dec 10 2015 | PERFECT CORP | Systems and methods for distinguishing facial features for cosmetic application |
Patent | Priority | Assignee | Title |
20070019882, | |||
20070255589, | |||
20120044335, | |||
20120327196, | |||
JP11025253, | |||
JP2000011144, | |||
JP2001346627, | |||
JP2003044837, | |||
JP2007175384, | |||
JP2007188407, | |||
JP2007257165, | |||
JP5197793, | |||
WO2009022631, | |||
WO2009093185, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Apr 16 2015 | YAMANASHI, TOMOFUMI | PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 035726 | /0868 | |
Apr 20 2015 | IZUMI, KEIKO | PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 035726 | /0868 | |
Apr 20 2015 | GOUDA, YOUICHI | PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 035726 | /0868 | |
May 19 2015 | PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO., LTD. | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Jun 24 2021 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Jan 02 2021 | 4 years fee payment window open |
Jul 02 2021 | 6 months grace period start (w surcharge) |
Jan 02 2022 | patent expiry (for year 4) |
Jan 02 2024 | 2 years to revive unintentionally abandoned end. (for year 4) |
Jan 02 2025 | 8 years fee payment window open |
Jul 02 2025 | 6 months grace period start (w surcharge) |
Jan 02 2026 | patent expiry (for year 8) |
Jan 02 2028 | 2 years to revive unintentionally abandoned end. (for year 8) |
Jan 02 2029 | 12 years fee payment window open |
Jul 02 2029 | 6 months grace period start (w surcharge) |
Jan 02 2030 | patent expiry (for year 12) |
Jan 02 2032 | 2 years to revive unintentionally abandoned end. (for year 12) |