SYSTEMS AND METHODS FOR ENHANCING COLOR ACCURACY OF FACE CHARTS
A computing device obtains an image depicting an image of a user's face. The computing device identifies facial features in the user's face in the image and extracts characteristics of the facial features in the user's face in the image. The computing device predicts a skin tone of the user's face depicted in the image and generates a face chart based on the facial feature characteristics. The computing device adjusts a color of a facial region in the face chart according to the predicted skin tone and obtains lighting characteristics of the image of the user's face. The computing device adjusts one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
This application claims priority to, and the benefit of, U.S. Provisional patent application entitled, “Adjust background color for face chart generator,” having Ser. No. 63/380,988, filed on Oct. 26, 2022, which is incorporated by reference in its entirety.
TECHNICAL FIELDThe present disclosure generally relates to systems and methods for enhancing the color accuracy of face charts.
SUMMARYIn accordance with one embodiment, a computing device obtains an image depicting an image of a user's face. The computing device identifies facial features in the user's face in the image and extracts characteristics of the facial features in the user's face in the image. The computing device predicts a skin tone of the user's face depicted in the image and generates a face chart based on the facial feature characteristics. The computing device adjusts a color of a facial region in the face chart according to the predicted skin tone and obtains lighting characteristics of the image of the user's face. The computing device adjusts one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
Another embodiment is a system that comprises a memory storing instructions and a processor coupled to the memory. The processor is configured by the instructions to obtain an image depicting an image of a user's face. The processor is further configured to identify facial features in the user's face in the image and extract characteristics of the facial features in the user's face in the image. The processor is further configured to predict a skin tone of the user's face depicted in the image and generate a face chart based on the facial feature characteristics. The processor is further configured to adjust a color of a facial region in the face chart according to the predicted skin tone and obtain lighting characteristics of the image of the user's face. The processor is further configured to adjust one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
Another embodiment is a non-transitory computer-readable storage medium storing instructions to be implemented by a computing device. The computing device comprises a processor, wherein the instructions, when executed by the processor, cause the computing device to obtain an image depicting an image of a user's face. The processor is further configured by the instructions to identify facial features in the user's face in the image and extract characteristics of the facial features in the user's face in the image. The processor is further configured by the instructions to predict a skin tone of the user's face depicted in the image and generate a face chart based on the facial feature characteristics. The processor is further configured by the instructions to adjust a color of a facial region in the face chart according to the predicted skin tone and obtain lighting characteristics of the image of the user's face. The processor is further configured by the instructions to adjust one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
Other systems, methods, features, and advantages of the present disclosure will be apparent to one skilled in the art upon examining the following drawings and detailed description. It is intended that all such additional systems, methods, features, and advantages be included within this description, be within the scope of the present disclosure, and be protected by the accompanying claims.
Various aspects of the disclosure are better understood with reference to the following drawings. The components in the drawings are not necessarily to scale, with emphasis instead being placed upon clearly illustrating the principles of the present disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
The subject disclosure is now described with reference to the drawings, where like reference numerals are used to refer to like elements throughout the following description. Other aspects, advantages, and novel features of the disclosed subject matter will become apparent from the following detailed description and corresponding drawings.
Embodiments are disclosed for enhancing the color accuracy of face charts by adjusting the color of the facial region in the face chart based on the lighting characteristics of the image of the user's face, adjusting the color of the background in the face chart, or a combination of both. Enhancing the color accuracy of face charts is needed to facilitate the optimal selection and application of cosmetic products for the user represented in the face chart. A description of a system for enhancing the color accuracy of face charts is described followed by a discussion of the operation of the components within the system.
A face chart application 104 executes on a processor of the computing device 102 and includes an image capture module 106, a face chart module 108, a lighting analyzer 110, a color adjuster 112, and an image editor 114. The image capture module 106 is configured to obtain digital images of a user's facial region and display the user's face on a display of the computing device 102. The computing device 102 may also be equipped with the capability to connect to the Internet, and the image capture module 106 may be configured to obtain an image or video of the user from another device or server.
The images obtained by the image capture module 106 may be encoded in any of a number of formats including, but not limited to, JPEG (Joint Photographic Experts Group) files, TIFF (Tagged Image File Format) files, PNG (Portable Network Graphics) files, GIF (Graphics Interchange Format) files, BMP (bitmap) files or any number of other digital formats. The video may be encoded in formats including, but not limited to, Motion Picture Experts Group (MPEG)-1, MPEG-2, MPEG-4, H.264, Third Generation Partnership Project (3GPP), 3GPP-2, Standard-Definition Video (SD-Video), High-Definition Video (HD-Video), Digital Versatile Disc (DVD) multimedia, Video Compact Disc (VCD) multimedia, High-Definition Digital Versatile Disc (HD-DVD) multimedia, Digital Television Video/High-definition Digital Television (DTV/HDTV) multimedia, Audio Video Interleave (AVI), Digital Video (DV), QuickTime (QT) file, Windows Media Video (WMV), Advanced System Format (ASF), Real Media (RM), Flash Media (FLV), an MPEG Audio Layer III (MP3), an MPEG Audio Layer II (MP2), Waveform Audio Format (WAV), Windows Media Audio (WMA), 360 degree video, 3D scan model, or any number of other digital formats.
The face chart module 108 is executed by the processor of the computing device 102 to identify facial features in the image obtained by the image capture module 106 and extract characteristics of the facial features of the user depicted in the image. Such characteristics may comprise the size and shape of facial features depicted in the image, the overall size and shape of the user's face, contouring information of the user's face, and so on. The face chart module 108 generates a face chart based on the facial feature characteristics, where the face chart depicts the user's facial features. The face chart module 108 is further configured to predict the skin tone of the user's face depicted in the image and adjust the color of the face chart according to the predicted skin tone.
The lighting analyzer 110 is executed to analyze the lighting environment depicted in the image of the user's face and obtain lighting characteristics of the user's face. Such lighting characteristics may include the lighting intensity of pixels in the entire image or specifically in the facial region of the user and reflects the lighting environment surrounding the user depicted in the image.
The color adjuster 112 is executed to adjust the color of the facial region in the face chart and/or adjust the color of the background in the face chart based on the lighting characteristics and output a face chart with the adjusted colors. The image editor 114 is executed to perform virtual application of one or more cosmetic products on the user's face utilizing the face chart with the adjusted colors.
The processing device 202 may include a custom made processor, a central processing unit (CPU), or an auxiliary processor among several processors associated with the computing device 102, a semiconductor based microprocessor (in the form of a microchip), a macroprocessor, one or more application specific integrated circuits (ASICs), a plurality of suitably configured digital logic gates, and so forth.
The memory 214 may include one or a combination of volatile memory elements (e.g., random-access memory (RAM) such as DRAM and SRAM) and nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM). The memory 214 typically comprises a native operating system 216, one or more native applications, emulation systems, or emulated applications for any of a variety of operating systems and/or emulated hardware platforms, emulated operating systems, etc. For example, the applications may include application specific software that may comprise some or all the components of the computing device 102 displayed in
In accordance with such embodiments, the components are stored in memory 214 and executed by the processing device 202, thereby causing the processing device 202 to perform the operations/functions disclosed herein. For some embodiments, the components in the computing device 102 may be implemented by hardware and/or software.
Input/output interfaces 204 provide interfaces for the input and output of data. For example, where the computing device 102 comprises a personal computer, these components may interface with one or more input/output interfaces 204, which may comprise a keyboard or a mouse, as shown in
In the context of this disclosure, a non-transitory computer-readable medium stores programs for use by or in connection with an instruction execution system, apparatus, or device. More specific examples of a computer-readable medium may include by way of example and without limitation: a portable computer diskette, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM, EEPROM, or Flash memory), and a portable compact disc read-only memory (CDROM) (optical).
Reference is made to
Although the flowchart 300 of
At block 310, the computing device 102 obtains an image of an image depicting an image of a user's face. At block 320, the computing device 102 identifies facial features in the user's face in the image and extracts characteristics of the facial features in the user's face in the image. At block 330, the computing device 102 predicts a skin tone of the user's face depicted in the image. For some embodiments, the computing device 102 predicts the skin tone of the user's face depicted in the image by executing a machine-learning algorithm based on other images of the user and other individuals.
At block 340, the computing device 102 generates a face chart based on the facial feature characteristics. At block 350, the computing device 102 adjusts a color of a facial region in the face chart according to the predicted skin tone. At block 360, the computing device 102 obtains lighting characteristics of the image of the user's face. For some embodiments, the computing device 102 obtains the lighting characteristics of the image by obtaining a luminance level for pixels in the image of the user's face and determining an average value of the luminance levels of the pixels in the user's face depicted in the image.
At block 370, the computing device 102 adjusts one or more colors in the face chart based on the lighting characteristics of the image of the user's face. For some embodiments, the computing device 102 adjusts the one or more colors in the face chart based on the lighting characteristics of the image by determining an average value of luminance values of pixels of the user's face depicted in the image and adjusting a color of a background in the face chart based on the average value. For some embodiments, the computing device 102 adjusts the one or more colors in the face chart based on the lighting characteristics of the image by determining an average value of luminance values of pixels of the user's face depicted in the image and adjusting a color of the facial region in the face chart based on the average value. Thereafter, the process in
To illustrate various features of the present invention, reference is made to the figures described below.
The face chart module 108 generates a face chart 504 based on these facial feature characteristics, where the face chart 504 depicts the user's facial features. The face chart module 108 is further configured to predict the skin tone of the user's face depicted in the image and adjust the color of the face chart 504 according to the predicted skin tone. For some embodiments, the face chart module 108 predicts the skin tone of the user's face depicted in the image by executing a machine-learning algorithm based on other images of the user and other individuals. As described above, the computing device 102 may also be equipped with the capability to connect to the Internet, and the face chart module 108 may obtain a face chart of the user from another device or server.
For some embodiments, the color adjuster 112 further comprises a background adjuster 602 configured to adjust the color of the background depicted in the face chart 606. For some embodiments, the background adjuster 602 adjusts the one or more colors in the face chart 606 by determining an average value of luminance values of pixels of the user's face depicted in the image and adjusting a color of a background in the face chart based on the average value.
For some embodiments, the color adjuster 112 also includes a facial region adjuster 604 configured to adjust the color of the facial region depicted in the face chart 606. For some embodiments, the facial region adjuster 604 adjusts the one or more colors in the face chart by determining an average value of luminance values of pixels of the user's face depicted in the image and adjusting a color of the facial region in the face chart based on the average value.
It should be emphasized that the above-described embodiments of the present disclosure are merely possible examples of implementations set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are included herein within the scope of this disclosure and protected by the following claims.
Claims
1. A method implemented in a computing device, comprising:
- obtaining an image depicting an image of a user's face;
- identifying facial features in the user's face in the image and extracting characteristics of the facial features in the user's face in the image;
- predicting a skin tone of the user's face depicted in the image;
- generating a face chart based on the facial feature characteristics;
- adjusting a color of a facial region in the face chart according to the predicted skin tone;
- obtaining lighting characteristics of the image of the user's face; and
- adjusting one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
2. The method of claim 1, wherein adjusting the one or more colors in the face chart based on the lighting characteristics of the image comprises:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of a background in the face chart based on the average value.
3. The method of claim 1, wherein adjusting the one or more colors in the face chart based on the lighting characteristics of the image comprises:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of the facial region in the face chart based on the average value.
4. The method of claim 1, wherein obtaining the lighting characteristics of the image comprises:
- obtaining a luminance level for pixels in the image of the user's face; and
- determining an average value of the luminance levels of the pixels in the user's face depicted in the image.
5. The method of claim 1, wherein predicting the skin tone of the user's face depicted in the image is performed by executing a machine-learning algorithm based on other images of the user and other individuals.
6. A system, comprising:
- a memory storing instructions;
- a processor coupled to the memory and configured by the instructions to at least:
- obtain an image depicting an image of a user's face;
- identify facial features in the user's face in the image and extract characteristics of the facial features in the user's face in the image;
- predict a skin tone of the user's face depicted in the image;
- generate a face chart based on the facial feature characteristics;
- adjust a color of a facial region in the face chart according to the predicted skin tone;
- obtain lighting characteristics of the image of the user's face; and
- adjust one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
7. The system of claim 6, wherein the processor is configured to adjust the one or more colors in the face chart based on the lighting characteristics of the image by:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of a background in the face chart based on the average value.
8. The system of claim 6, wherein the processor is configured to adjust the one or more colors in the face chart based on the lighting characteristics of the image by:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of the facial region in the face chart based on the average value.
9. The system of claim 6, wherein the processor is configured to obtain the lighting characteristics of the image by:
- obtaining a luminance level for pixels in the image of the user's face; and
- determining an average value of the luminance levels of the pixels in the user's face depicted in the image.
10. The system of claim 6, wherein the processor is configured to predict the skin tone of the user's face depicted in the image by executing a machine-learning algorithm based on other images of the user and other individuals.
11. A non-transitory computer-readable storage medium storing instructions to be implemented by a computing device having a processor, wherein the instructions, when executed by the processor, cause the computing device to at least:
- obtain an image depicting an image of a user's face;
- identify facial features in the user's face in the image and extract characteristics of the facial features in the user's face in the image;
- predict a skin tone of the user's face depicted in the image;
- generate a face chart based on the facial feature characteristics;
- adjust a color of a facial region in the face chart according to the predicted skin tone;
- obtain lighting characteristics of the image of the user's face; and
- adjust one or more colors in the face chart based on the lighting characteristics of the image of the user's face.
12. The non-transitory computer-readable storage medium of claim 11, wherein the processor is configured by the instructions to adjust the one or more colors in the face chart based on the lighting characteristics of the image by:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of a background in the face chart based on the average value.
13. The non-transitory computer-readable storage medium of claim 11, wherein the processor is configured by the instructions to adjust the one or more colors in the face chart based on the lighting characteristics of the image by:
- determining an average value of luminance values of pixels of the user's face depicted in the image; and
- adjusting a color of the facial region in the face chart based on the average value.
14. The non-transitory computer-readable storage medium of claim 11, wherein the processor is configured by the instructions to obtain the lighting characteristics of the image by:
- obtaining a luminance level for pixels in the image of the user's face; and
- determining an average value of the luminance levels of the pixels in the user's face depicted in the image.
15. The non-transitory computer-readable storage medium of claim 11, wherein the processor is configured by the instructions to predict the skin tone of the user's face depicted in the image by executing a machine-learning algorithm based on other images of the user and other individuals.
Type: Application
Filed: Sep 22, 2023
Publication Date: May 2, 2024
Inventors: Kuo-Sheng LIN (New Taipei City), Guo-Wei LI (New Taipei City)
Application Number: 18/472,534