Human face skin evaluation method, device, smart mirror cabinet and storage medium

By integrating voice and shooting devices in smart mirror cabinets, combined with image recognition algorithms, and adjusting the color temperature of the light source to identify and evaluate the user's skin, the problem of smart makeup mirrors being unable to accurately identify skin is solved and the accuracy of skin makeup prompt information is improved.

CN118297054BActive Publication Date: 2024-09-10FOSHAN HONGWEI ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719670.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-10
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

Due to insufficient hardware equipment or inaccurate face recognition, smart makeup mirrors cannot accurately identify and evaluate the user's skin, resulting in inaccurate facial skin makeup prompt information in voice responses.

Method used

By integrating the voice device and the shooting device in the smart mirror cabinet, the voice information is used to adjust the color temperature of the light source, capture the user's face image, combine the image recognition algorithm to identify abnormal areas, calculate the color gradient change map to determine the skin evaluation results, and improve skin makeup tips. Accuracy of information.

Benefits of technology

It achieves accurate identification and evaluation of user skin, improves the accuracy of facial skin makeup prompt information, and enhances the auxiliary dressing function of smart mirror cabinets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118297054B
    Figure CN118297054B
Patent Text Reader

Abstract

The present invention discloses a facial skin evaluation method, device, smart mirror cabinet and storage medium, belonging to the field of smart home. The smart mirror cabinet of the present invention includes a voice device and a shooting device, and the facial skin evaluation method includes: when it is detected that the number of target words in the user's voice information reaches a preset condition, adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target words, and the user's voice information is collected by the voice device; controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet; and determining the evaluation result of the user's facial skin according to the facial image. The recognition and evaluation of the user's skin is realized, thereby improving the accuracy of the facial skin makeup prompt information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home, and in particular to a facial skin evaluation method, a facial skin evaluation device, a smart mirror cabinet and a storage medium. Background Art

[0002] As people continue to pursue their appearance, they often need to dress up in front of a dressing table. At present, smart makeup mirrors can interact with users through voice, and generate corresponding communication voices by collecting users' voice information. However, due to the lack of hardware equipment or inaccurate face recognition, the required hardware equipment includes suitable lighting devices, image acquisition devices, etc., which results in the inability to identify and evaluate the user's skin when the user asks questions related to facial skin makeup, resulting in inaccurate facial skin makeup prompt information answered by the smart makeup mirror voice.

[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present invention is to provide a facial skin evaluation method, aiming to realize identification and evaluation of the user's skin, thereby improving the accuracy of facial skin makeup prompt information.

[0005] To achieve the above object, the present invention provides a facial skin evaluation method, which is applied to a smart mirror cabinet, wherein the smart mirror cabinet includes a voice device and a camera device, and the facial skin evaluation method includes the following steps:

[0006] When it is detected that the number of target words in the user voice information reaches a preset condition, adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target words, the user voice information being collected by the voice device;

[0007] Controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet;

[0008] An evaluation result of the user's facial skin is determined according to the facial image.

[0009] Optionally, the types of the target vocabulary include: location type, time type, and weather type, and the step of adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target vocabulary includes:

[0010] Determine the user's spatial information based on the place-type vocabulary, the time-type vocabulary, and the weather-type vocabulary;

[0011] Determining a corresponding target color temperature according to the spatial information and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between the spatial information and the color temperature;

[0012] The color temperature parameters of the light source are adjusted according to the target color temperature.

[0013] Optionally, the step of determining the evaluation result of the user's facial skin according to the facial image includes:

[0014] Identify abnormal areas in the face image according to an image recognition algorithm to obtain location information of the abnormal areas, where scars, acne and spots are located;

[0015] Determine, according to the location information, a color gradient change map of the abnormal area and a neighborhood color gradient change map of an area adjacent to the abnormal area;

[0016] The evaluation result is determined according to the color gradient change map and the neighborhood color gradient change map.

[0017] Optionally, the step of determining the color gradient change map of the abnormal area and the neighborhood color gradient change map of an area adjacent to the abnormal area according to the position information includes:

[0018] Acquire a plurality of pixel color data of the abnormal area according to the position information, and calculate the color gradient change map according to the plurality of pixel color data;

[0019] The neighborhood position information of the adjacent area is determined according to the position information, a plurality of neighborhood pixel color data is acquired according to the neighborhood position information, and the neighborhood color gradient change map is calculated according to the plurality of neighborhood pixel color data.

[0020] Optionally, the light source includes a plurality of sub-light sources, and the sub-light sources are arranged around a reflector of the smart mirror cabinet, and the step of controlling the shooting device to shoot a facial image of a user in front of the smart mirror cabinet includes:

[0021] Determine the operation instructions of the plurality of sub-light sources according to the preset lighting direction, and control the plurality of sub-light sources according to the plurality of the operation instructions;

[0022] Controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet;

[0023] When there is lighting direction data in the preset lighting queue, the preset lighting direction is updated according to the lighting direction data, and the lighting direction data in the preset lighting queue is deleted, and the step of returning to execute the operation instruction of determining the plurality of sub-light sources according to the preset lighting direction, and controlling the plurality of sub-light sources according to the plurality of the operation instructions;

[0024] When there is no lighting direction data in the preset lighting queue, it is determined that a plurality of face images corresponding to different lighting directions are obtained.

[0025] Optionally, after the step of determining the evaluation result of the user's facial skin according to the facial image, the method further includes:

[0026] When the action posture of the user image is a makeup posture, returning to the step of controlling the shooting device to shoot the face image of the user in front of the smart mirror cabinet;

[0027] When there is no human face in the user image, the photographing device is turned off.

[0028] Optionally, before the step of controlling the photographing device to photograph the facial image of the user in front of the smart mirror cabinet, the step further includes:

[0029] Controlling the shooting device to shoot an environment image, and determining the light intensity information of the light source according to the environment image;

[0030] The brightness of the light source of the smart mirror cabinet is adjusted according to the light intensity information.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a facial skin evaluation device, the facial skin evaluation device comprising: a voice device, a shooting device and a computing module, the computing module comprising:

[0032] an adjustment module, configured to adjust the color temperature parameters of the light source of the smart mirror cabinet according to the target vocabulary when it is detected that the number of target vocabulary in the user voice information reaches a preset condition, the user voice information being collected by the voice device;

[0033] A collection module, used to control the shooting device to shoot a facial image of a user in front of the smart mirror cabinet;

[0034] An evaluation module is used to determine an evaluation result of the user's facial skin based on the facial image.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a smart mirror cabinet, which includes: a voice device, a shooting device, a memory, a processor, and a facial skin evaluation program stored in the memory and runnable on the processor, wherein the facial skin evaluation program is configured to implement the steps of any one of the facial skin evaluation methods described.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, characterized in that a facial skin evaluation program is stored on the storage medium, and when the facial skin evaluation program is executed by a processor, the steps of any one of the facial skin evaluation methods are implemented.

[0037] The present invention proposes a facial skin evaluation method, which adjusts the color temperature parameters according to the target vocabulary, so as to determine the appropriate light source color temperature, thereby improving the accuracy of the captured facial image, and determines the evaluation result of the user's facial skin based on the facial image, thereby improving the accuracy of generating skin makeup prompt information. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 is a structural schematic diagram of a smart mirror cabinet in a hardware operating environment involved in an embodiment of the present invention;

[0039] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the method for evaluating facial skin of the present invention;

[0040] Figure 3 It is a schematic flow chart of a second embodiment of the method for evaluating facial skin of the present invention;

[0041] Figure 4 is a schematic flow chart of a third embodiment of a facial skin evaluation method of the present invention;

[0042] Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a facial skin evaluation method according to the present invention.

[0043] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0045] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a smart mirror cabinet in the hardware operating environment involved in the embodiment of the present invention.

[0046] like Figure 1As shown, the smart mirror cabinet may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, an interactive device 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The interactive device 1003 may include a display screen (Display), a voice device, and a shooting device. The optional interactive device 1003 may also be connected to the communication bus through a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0047] Further voice devices may include microphones, speakers, headphones, etc. The shooting device may be a camera and a photoelectric sensor, etc.

[0048] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the smart mirror cabinet, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0049] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and a facial skin evaluation program.

[0050] exist Figure 1 In the smart mirror cabinet shown, the network interface 1004 is mainly used for data communication with other devices; the interactive device 1003 is mainly used for interacting with the user; the processor 1001 and the memory 1005 in the smart mirror cabinet of the present invention can be set in the smart mirror cabinet, and the smart mirror cabinet calls the facial skin evaluation program stored in the memory 1005 through the processor 1001, and executes the facial skin evaluation method provided by the embodiment of the present invention.

[0051] The embodiment of the present invention provides a method for evaluating facial skin, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a facial skin evaluation method according to the present invention.

[0052] In this embodiment, the method is applied to a smart mirror cabinet, which includes a voice device and a camera. The facial skin evaluation method includes the following steps:

[0053] Step S10, when it is detected that the number of target words in the user voice information reaches a preset condition, adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target words, the user voice information is collected by the voice device;

[0054] In this embodiment, the voice device here includes a voice detection device and a voice playback device, for example: the voice detection device can be a microphone, and the voice playback device can be a speaker. Specifically, in the communication with the user, prompt questions related to the target vocabulary can be set, and the prompt questions can be played through the voice playback device, so as to guide the user to make sounds related to the target vocabulary. Optionally, the preset condition here means that the number of target words is greater than or equal to the preset number, and the preset number can be set by the user, and the preset number is 4. The light source here is a white light source, and the light source is irradiated onto the skin of the user's face. Light sources of different color temperatures are irradiated onto the face, and skin abnormalities such as acne spots will have different effects. In addition, the light intensity of the light source can be set by the user or according to the ambient light intensity.

[0055] Step S20, controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet;

[0056] Specifically, the photographing device is controlled to adjust the magnification and the focal length so that the number of pixels occupied by the user's face in the face image is two-thirds of all the pixels in the face image.

[0057] Step S30, determining an evaluation result of the user's facial skin according to the facial image.

[0058] Specifically, the abnormal area in the face image can be identified according to the face image and the image recognition algorithm, and the average pixel value of the abnormal area is compared with the average pixel value of the normal area. The normal area here refers to the area of ​​the face skin outside the abnormal area, that is, the pixels of the teeth and eyes in the face image. Since they do not belong to the skin, they are neither the normal area nor the abnormal area. The average value of the red, green and blue channels of the abnormal area in the face image is calculated as the first vector, and the average value of the red, green and blue channels of the normal area in the face image is calculated as the second vector. The Euclidean distance between the first vector and the second vector is calculated. When there is only one abnormal area, the Euclidean distance is used as the evaluation result. When there are at least two abnormal areas, the evaluation result is determined according to the Euclidean distance corresponding to the abnormal area. After determining the evaluation result, it also includes: determining the corresponding facial skin makeup prompt information according to the evaluation result, and the evaluation result and the facial skin makeup prompt information can also be played through a voice playback device.

[0059] In this embodiment, the color temperature parameter is adjusted according to the target vocabulary to determine a suitable light source color temperature, thereby improving the accuracy of the captured facial image, and the facial image is used to determine the evaluation result of the user's facial skin, thereby improving the accuracy of generating skin makeup prompt information.

[0060] Further, based on the first embodiment, a second embodiment of the face skin evaluation method of the present invention is proposed. In this embodiment, referring to Figure 3 The types of the target vocabulary include: location type, time type, and weather type. The step of adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target vocabulary includes:

[0061] Step S11, determining the user's spatial information according to the place type vocabulary, the time type vocabulary and the weather type vocabulary;

[0062] The spatial information here does not refer to the information of the space where the current smart mirror cabinet is located, but the spatial information of the target place where the user is about to go out. The vocabulary of the place type here includes: park, exhibition, library, classroom, office, hotel, city name, etc. The vocabulary of the weather type here generally includes sunny day, rainy day, foggy day, etc. It should be noted that in this embodiment, when the vocabulary of weather type is not mentioned, weather information can be obtained by connecting to the Internet. Time vocabulary includes specific time, and can also include vocabulary such as leaving immediately and going soon. In this embodiment, when the vocabulary of weather type is not mentioned, time information can be obtained by connecting to the Internet. In this embodiment, the spatial information is determined by detecting the target vocabulary, and the target color temperature is further determined based on the spatial information, so that the color temperature of the scene can be predicted, and the corresponding color temperature environment can be simulated for evaluating the face skin, thereby improving the accuracy.

[0063] Step S12, determining a corresponding target color temperature according to the spatial information and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between the spatial information and the color temperature;

[0064] There are corresponding target color temperatures for different times, weather, and locations. In reality, for the color temperature of indoor light sources, since the types of lamps used are not fixed, even the color temperatures of light sources in the same place may vary greatly, and the influence of weather and time is not great. Therefore, the indoor space information can correspond to a target color temperature with a larger range, or the indoor space information can correspond to multiple target color temperatures. For example, the target color temperature corresponding to the bedroom is 3000K, and the target color temperature corresponding to the study room, office, and library is 4000K. When the space information is outdoor, the color temperature is greatly affected by weather and time. The target color temperatures under different conditions are as follows: For example, on a sunny day, the color temperature of the sunlight at sunrise and sunset ranges from 2000K to 3000K, the color temperature of the sunlight at 10 o'clock in the morning is about 3500K, and the color temperature of the sunlight at noon is 5000K; on a sunny and cloudy day, the color temperature of the sunlight at noon is about 6500K; and on a clear sky, the color temperature is about 12000K. The first corresponding relationship here may specifically be a first corresponding table, and the target color temperature may be determined in the first corresponding table according to the space information.

[0065] Step S13: adjusting the color temperature parameters of the light source according to the target color temperature.

[0066] It should be noted that, in this embodiment, when the number of corresponding target color temperatures determined according to the spatial information and the first corresponding relationship is more than one, the user can select the color temperature parameter for adjusting the light source from the more than one target color temperatures. In addition, in this embodiment, after the step of controlling the shooting device to shoot the face image of the user in front of the smart mirror cabinet is completed, it also includes adjusting the light source to a color temperature suitable for makeup, that is, a color temperature of 4000K.

[0067] In this embodiment, by determining the user's spatial information based on the place type vocabulary, the time type vocabulary, and the weather type vocabulary and adjusting the color temperature parameters of the light source according to the target color temperature, the accuracy of setting the color temperature parameters is improved, thereby improving the accuracy of the evaluation results of the facial skin.

[0068] Based on any of the above embodiments, a third embodiment of the facial skin evaluation method of the present invention is proposed. In this embodiment, referring to Figure 4 The step of determining the evaluation result of the user's facial skin according to the facial image comprises:

[0069] Step S31, identifying abnormal areas in the face image according to an image recognition algorithm, and obtaining location information of the abnormal areas, wherein the abnormal areas are areas where scars, acne and spots are located;

[0070] Optionally, the face image is grayscaled to obtain a grayscale image, the grayscale image is detected using a Canny algorithm, edge information of the grayscale image is extracted, and the abnormal area is determined based on the edge information, specifically, the information related to the facial features in the edge information is removed to obtain the abnormal area. In other embodiments, the Sobel algorithm can also be used to perform convolution on the face image using two directional matrix templates and the image.

[0071] Step S32, determining a color gradient change map of the abnormal area and a neighborhood color gradient change map of an area adjacent to the abnormal area according to the location information;

[0072] Determine a first direction, an area in the first direction and adjacent to the abnormal area is a first adjacent area, and determine a corresponding neighborhood color gradient change map. The size of the first adjacent area is the same as the size of the abnormal area, and the size of the abnormal area is determined according to the coordinate range of the position information. It should be noted that since the image color is composed of red, green and blue, the abnormal area and the first adjacent area in the three color component maps of the face image are respectively derived from the pixels adjacent to the first direction to obtain the color gradient change map corresponding to the three color components and the neighborhood color gradient change map.

[0073] Step S33, determining the evaluation result according to the color gradient change map and the neighborhood color gradient change map.

[0074] Compare the largest abnormal gradient in the color gradient change map with the largest neighborhood gradient in the neighborhood color gradient change map, and determine the evaluation result according to the comparison result. The abnormal gradient here is calculated according to the color gradient corresponding to the three color components, and the sum of the color gradients corresponding to the three color components is optionally calculated. The neighborhood gradient here is calculated according to the neighborhood color gradient corresponding to the three color components. Calculate the gradient ratio of the abnormal gradient and the neighborhood gradient, use the gradient ratio as the comparison result, and determine the evaluation result. When the gradient ratio is the first ratio, it is determined that the evaluation result is that there are no abnormal spots on the skin, when the gradient ratio is the second ratio, it is determined that there are inconspicuous spots on the skin, and when the gradient ratio is the third ratio, it is determined that the skin has abnormal spots, and the first ratio is less than the second ratio, and the second ratio is less than the third ratio. After step S33, it also includes: generating corresponding skin care suggestions and makeup suggestions according to the evaluation results.

[0075] In this embodiment, the abnormal area in the face image is identified by an image recognition algorithm, and the color gradient change map of the abnormal area and the neighborhood color gradient change map of the area adjacent to the abnormal area are determined based on the position information; since there is a difference in color change between the abnormal area and the adjacent area, the evaluation result is determined based on the color gradient change map and the neighborhood color gradient change map, which can reflect the difference between the abnormal area and the adjacent area, thereby improving the accuracy of the evaluation result.

[0076] Furthermore, the step of determining the color gradient change map of the abnormal area and the neighborhood color gradient change map of the area adjacent to the abnormal area according to the location information includes:

[0077] Acquire a plurality of pixel color data of the abnormal area according to the position information, and calculate the color gradient change map according to the plurality of pixel color data;

[0078] In this embodiment, the color gradient change map is calculated based on multiple pixel color data of the position index abnormal area and multiple adjacent pixel color data. In this embodiment, it should be noted that since the size of the abnormal area may be inconsistent, the number of pixels in the abnormal area is adjusted by a difference algorithm.

[0079] The neighborhood position information of the adjacent area is determined according to the position information, a plurality of neighborhood pixel color data is acquired according to the neighborhood position information, and the neighborhood color gradient change map is calculated according to the plurality of neighborhood pixel color data.

[0080] It should be noted that in this embodiment, the first direction can be a vertical direction or a horizontal direction. When the number of first directions is more than one, the evaluation result is determined according to the color gradient change map corresponding to the multiple first directions and the neighborhood color gradient change map. Specifically, the largest abnormal gradient in the color gradient change map and the largest neighborhood gradient in the neighborhood color gradient change map are compared. Since the number of first directions is more than one, more than one comparison results appear. The average comparison result is determined by weighted average based on more than one comparison results, and the evaluation result is determined based on the average comparison result. It should be noted that when there are more than one abnormal area, the average comparison result is determined by weighted average based on the corresponding comparison results of the abnormal area. For different abnormal areas, the weighting coefficient is positively correlated with the area of ​​the abnormal area.

[0081] In this embodiment, by obtaining multiple pixel color data of the abnormal area according to the position information, calculating the color gradient change map according to the multiple pixel color data, and determining the neighborhood position information of the adjacent area according to the position information, obtaining multiple neighborhood pixel color data according to the neighborhood position information, and calculating the neighborhood color gradient change map according to the multiple neighborhood pixel color data, it can be determined that accurate data is used for calculation, thereby improving the accuracy of the evaluation results.

[0082] Based on any of the above embodiments, a fourth embodiment of the facial skin evaluation method of the present invention is proposed. In this embodiment, referring to Figure 5 , the light source includes a plurality of sub-light sources, and the sub-light sources are arranged around the reflector of the smart mirror cabinet, and the step of controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet includes:

[0083] Step S21, determining operation instructions of the plurality of sub-light sources according to a preset lighting direction, and controlling the plurality of sub-light sources according to the plurality of operation instructions;

[0084] In this embodiment, the preset lighting direction here can be set by the user or can be preset first. The sub-light source here is a light source with adjustable color temperature, for example, an LED array light source, which achieves color temperature adjustment by mixing cold and warm white LEDs. Specifically, the sub-light sources at different positions around the reflector are controlled to be turned on or off, so as to achieve the preset lighting direction.

[0085] Step S22, controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet;

[0086] It should be noted that step S21 may be performed first and then step S22. To improve efficiency, step S21 and step S22 may also be performed simultaneously. In this embodiment, it is preferred that step S21 and step S22 are performed simultaneously.

[0087] Step S23, when there is lighting direction data in the preset lighting queue, updating the preset lighting direction according to the lighting direction data, deleting the lighting direction data in the preset lighting queue, returning to the step of executing the operation instruction of determining the plurality of sub-light sources according to the preset lighting direction, and controlling the plurality of sub-light sources according to the plurality of operation instructions;

[0088] The data in the preset lighting queue can be directly set by the user. It should be noted that since step S21 and step S22 are executed simultaneously, and step S23 and step S24 are an overall solution, the time for acquiring multiple face images can be reduced, and the consistency of the images can be improved. That is, the shorter the shooting time, the more consistent the user's expression and the angle of the face will be. The change of abnormal areas in different face images is caused by the change of lighting direction. It should be noted that since acne is not just a change in color, but also has different degrees of protrusions, lighting at different angles will result in different effects on the image due to changes in shadows.

[0089] Step S24, when there is no lighting direction data in the preset lighting queue, it is determined to obtain a plurality of face images corresponding to different lighting directions.

[0090] In the technical solution based on the third embodiment, the abnormal area is determined to be acne or pigmentation according to the illumination difference between the comparison results corresponding to different illumination directions corresponding to the same abnormal area, and when the illumination difference is greater than or equal to the preset illumination difference, the abnormal area is determined to be acne. When the illumination difference is less than the preset illumination difference, the abnormal area is determined to be pigmentation.

[0091] In the fourth embodiment proposed based on the third embodiment, when there are more than one abnormal area, the average comparison result is determined by weighted averaging according to the corresponding comparison results of the abnormal area. For different abnormal areas, the weighting coefficient is positively correlated with the area of ​​the abnormal area. In addition, the weighting coefficient is adjusted according to the type of abnormal area, such as acne or spots. That is, in the fourth embodiment proposed based on the third embodiment, the evaluation result is a comprehensive evaluation method based on the comparison of the area of ​​the abnormal area, the type of the abnormal area, and the adjacent areas, which can improve the accuracy. That is, step S31, in this embodiment, is specifically:

[0092] Compare the largest abnormal gradient in multiple color gradient change maps with the largest neighborhood gradient in the corresponding neighborhood color gradient change map to obtain multiple comparison results, calculate the average comparison result based on all the comparison results and the corresponding weighting coefficients, and determine the test evaluation result based on the value of the average comparison result. It should be noted that the comparison results are correspondingly provided with weighting coefficients, and there is a difference between any two comparison results in at least one of belonging to different preset lighting directions, belonging to different abnormal areas, and belonging to different first directions. Belonging to different preset lighting directions means that the two comparison results are face images taken under different lighting conditions. Belonging to different abnormal areas means that the two comparison results are different abnormal areas in the face image. Belonging to different first directions means that the first adjacent areas are different due to the different first directions before calculating the comparison results.

[0093] In this embodiment, different facial information is obtained through different lighting angles, thereby improving the overall accuracy of the evaluation results.

[0094] Based on any of the above embodiments, a fifth embodiment of the facial skin evaluation method of the present invention is proposed. In this embodiment, after the step of determining the evaluation result of the facial skin of the user according to the facial image, the method further includes:

[0095] When the action posture of the user image is a makeup posture, returning to the step of controlling the shooting device to shoot the face image of the user in front of the smart mirror cabinet;

[0096] It should be noted that when using the smart mirror cabinet, the user may put on makeup according to the trial evaluation results and the corresponding makeup suggestions, so the face is evaluated again.

[0097] When there is no human face in the user image, the photographing device is turned off.

[0098] When the user leaves, resources can be saved by turning off the camera to stop collecting images.

[0099] In this embodiment, different operation modes can be selected by judging the user's posture and face, thereby saving resources.

[0100] Further, based on any of the above embodiments, a sixth embodiment of the facial skin evaluation method of the present invention is proposed. In this embodiment, before the step of controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet, the step further includes:

[0101] Controlling the shooting device to shoot an environment image, and determining the light intensity information of the light source according to the environment image;

[0102] The brightness of the light source of the smart mirror cabinet is adjusted according to the light intensity information.

[0103] According to different modes, the brightness of the light source can be determined in different ways. In the first mode, the ambient color temperature and ambient light intensity are determined according to the ambient image, and the brightness of the light source is adjusted according to the ambient color temperature and the ambient light intensity so that the color temperature of the environment is the target color temperature. In the second mode, the ambient light intensity is determined according to the ambient image, and when the ambient light intensity is less than the ambient light intensity threshold, the light intensity information is set according to the user instruction, and the brightness of the light source of the smart mirror cabinet is adjusted according to the light intensity information.

[0104] In this embodiment, the camera is controlled to capture an environmental image, the light intensity information of the light source is determined according to the environmental image, and the brightness of the light source of the smart mirror cabinet is adjusted according to the light intensity information. This can improve the ability to achieve the target color temperature, thereby improving the accuracy of the subsequent evaluation results.

[0105] In addition, an embodiment of the present invention further provides a facial skin evaluation device, the facial skin evaluation device comprising: a voice device, a photographing device and a computing module, the computing module comprising:

[0106] an adjustment module, configured to adjust the color temperature parameters of the light source of the smart mirror cabinet according to the target vocabulary when it is detected that the number of target vocabulary in the user voice information reaches a preset condition, the user voice information being collected by the voice device;

[0107] A collection module, used to control the shooting device to shoot a facial image of a user in front of the smart mirror cabinet;

[0108] An evaluation module is used to determine an evaluation result of the user's facial skin based on the facial image.

[0109] In addition, an embodiment of the present invention also proposes a smart mirror cabinet, which includes: a voice device, a shooting device, a memory, a processor, and a facial skin evaluation program stored in the memory and runnable on the processor, wherein the facial skin evaluation program is configured to implement the steps of the embodiment of the facial skin evaluation method described in any one of the above items.

[0110] In addition, an embodiment of the present invention further proposes a storage medium, on which a facial skin evaluation program is stored. When the facial skin evaluation program is executed by a processor, the steps of any of the facial skin evaluation methods described above are implemented.

[0111] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system including the element.

[0112] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0114] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A facial skin evaluation method, characterized in that: Applied to a smart mirror cabinet, the smart mirror cabinet includes a voice device and a camera, and the facial skin evaluation method includes the following steps: When it is detected that the number of target words in the user voice information reaches a preset condition, adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target words, the user voice information being collected by the voice device; Controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet; Determining an evaluation result of the user's facial skin according to the facial image; The types of the target vocabulary include: location type, time type, and weather type. The step of adjusting the color temperature parameter of the light source of the smart mirror cabinet according to the target vocabulary includes: Determine the user's spatial information based on the place-type vocabulary, the time-type vocabulary, and the weather-type vocabulary; Determining a corresponding target color temperature according to the spatial information and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between the spatial information and the color temperature; Adjusting the color temperature parameters of the light source according to the target color temperature; The step of determining the evaluation result of the user's facial skin according to the facial image comprises: Identify abnormal areas in the face image according to an image recognition algorithm to obtain location information of the abnormal areas, where scars, acne and spots are located; Determine, according to the location information, a color gradient change map of the abnormal area and a neighborhood color gradient change map of an area adjacent to the abnormal area; Determine the evaluation result according to the color gradient change map and the neighborhood color gradient change map; The light source includes a plurality of sub-light sources, and the sub-light sources are arranged around the reflector of the smart mirror cabinet. The step of controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet includes: Determine the operation instructions of the plurality of sub-light sources according to the preset lighting direction, and control the plurality of sub-light sources according to the plurality of the operation instructions; Controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet; When there is lighting direction data in the preset lighting queue, the preset lighting direction is updated according to the lighting direction data, and the lighting direction data in the preset lighting queue is deleted, and the step of returning to execute the operation instruction of determining the plurality of sub-light sources according to the preset lighting direction, and controlling the plurality of sub-light sources according to the plurality of the operation instructions; When there is no lighting direction data in the preset lighting queue, it is determined that a plurality of face images corresponding to different lighting directions are obtained.

2. The facial skin evaluation method according to claim 1, characterized in that: The step of determining the color gradient change map of the abnormal area and the neighborhood color gradient change map of the area adjacent to the abnormal area according to the position information comprises: Acquire a plurality of pixel color data of the abnormal area according to the position information, and calculate the color gradient change map according to the plurality of pixel color data; The neighborhood position information of the adjacent area is determined according to the position information, a plurality of neighborhood pixel color data is acquired according to the neighborhood position information, and the neighborhood color gradient change map is calculated according to the plurality of neighborhood pixel color data.

3. The facial skin evaluation method according to claim 1, wherein: After the step of determining the evaluation result of the user's facial skin according to the facial image, the method further includes: When the action posture of the user image is a makeup posture, returning to the step of controlling the shooting device to shoot the face image of the user in front of the smart mirror cabinet; When there is no human face in the user image, the photographing device is turned off.

4. The facial skin evaluation method according to any one of claims 1 to 3, characterized in that: Before the step of controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet, the step further includes: Controlling the shooting device to shoot an environment image, and determining the light intensity information of the light source according to the environment image; The brightness of the light source of the smart mirror cabinet is adjusted according to the light intensity information.

5. A facial skin evaluation device, characterized in that: The facial skin evaluation device comprises: a voice device, a photographing device and a computing module, wherein the computing module comprises: The adjustment module is used to adjust the color temperature parameters of the light source of the smart mirror cabinet according to the target vocabulary when it is detected that the number of target vocabulary in the user voice information reaches a preset condition, wherein the user voice information is collected by the voice device; the types of the target vocabulary include: location type, time type, and weather type, and the step of adjusting the color temperature parameters of the light source of the smart mirror cabinet according to the target vocabulary includes: Determine the user's spatial information based on the place-type vocabulary, the time-type vocabulary, and the weather-type vocabulary; Determining a corresponding target color temperature according to the spatial information and a first corresponding relationship, wherein the first corresponding relationship is a corresponding relationship between the spatial information and the color temperature; Adjusting the color temperature parameters of the light source according to the target color temperature; The acquisition module is used to control the shooting device to shoot the facial image of the user in front of the smart mirror cabinet; the light source includes a plurality of sub-light sources, and the sub-light sources are arranged around the reflector of the smart mirror cabinet. The step of controlling the shooting device to shoot the facial image of the user in front of the smart mirror cabinet includes: Determine the operation instructions of the plurality of sub-light sources according to the preset lighting direction, and control the plurality of sub-light sources according to the plurality of the operation instructions; Controlling the photographing device to photograph a facial image of a user in front of the smart mirror cabinet; When there is lighting direction data in the preset lighting queue, the preset lighting direction is updated according to the lighting direction data, and the lighting direction data in the preset lighting queue is deleted, and the step of returning to execute the operation instruction of determining the plurality of sub-light sources according to the preset lighting direction, and controlling the plurality of sub-light sources according to the plurality of the operation instructions; When there is no lighting direction data in the preset lighting queue, determining to obtain a plurality of face images corresponding to different lighting directions; An evaluation module is used to determine the evaluation result of the user's facial skin according to the facial image; the step of determining the evaluation result of the user's facial skin according to the facial image includes: Identify abnormal areas in the face image according to an image recognition algorithm to obtain location information of the abnormal areas, where scars, acne and spots are located; Determine, according to the location information, a color gradient change map of the abnormal area and a neighborhood color gradient change map of an area adjacent to the abnormal area; The evaluation result is determined according to the color gradient change map and the neighborhood color gradient change map.

6. A smart mirror cabinet, characterized in that: The smart mirror cabinet includes: a voice device, a shooting device, a memory, a processor, and a facial skin evaluation program stored in the memory and executable on the processor, wherein the facial skin evaluation program is configured to implement the steps of the facial skin evaluation method as described in any one of claims 1 to 3.

7. A storage medium, characterized in that: The storage medium stores a facial skin evaluation program, which, when executed by a processor, implements the steps of the facial skin evaluation method according to any one of claims 1 to 3.