Skin detection method and device

By applying color temperature mixing theory and target frequency interval technology in beauty mirrors, the problem that changes in color temperature of beauty mirrors affect the accuracy of skin detection is solved, and more stable and accurate skin detection results and better user experience are achieved.

CN115116104BActive Publication Date: 2025-04-04HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110304929.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2025-04-04
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

When using a beauty mirror for skin detection, the color temperature of the beauty mirror before and after makeup and after removing makeup varies, resulting in significant color differences in color-related skin detection items such as acne, acne marks and color spots, and the detection accuracy is difficult to guarantee.

Method used

Through the color temperature mixing theory, the target frequency and the second color temperature are set, the third color temperature is calculated from the first color temperature set by the user, the second color temperature and the third color temperature are presented at the target frequency interval using the light source, and the skin detection is performed using a camera when displaying the second color temperature.

Benefits of technology

Improves the accuracy of skin detection when no sensory skin is detected, obtains more stable and accurate measurement results, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115116104B_ABST
    Figure CN115116104B_ABST
Patent Text Reader

Abstract

The present application provides a method and device for skin detection, which is conducive to improving the accuracy of skin detection when no skin is sensed, obtaining more stable and accurate measurement results, and thus improving user experience. The method is applied to a device including a camera and a light source, and includes: obtaining a first color temperature, the first color temperature is the color temperature required by the user; making the light source present a second color temperature and a third color temperature at a target frequency interval, the second color temperature is the color temperature required for skin detection, and the third color temperature is used to synthesize the first color temperature with the second color temperature; when the light source presents the second color temperature, collecting a face image through the camera; performing skin detection on the face image to obtain a skin detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of skin detection, and in particular to a method and device for skin detection. Background Art

[0002] With the development of science and technology, technology-assisted beauty has become a new trend, and the application of intelligent skin detection technology is becoming more and more widespread. Intelligent skin detection technology can determine the skin condition of a person's face by detecting facial image recognition. For example, it detects and analyzes color-related skin detection items such as acne, acne marks, and spots in facial images, and generates a skin detection report for users so that users can use it as a reference for skin beauty and skin care.

[0003] At present, the forms of technological beauty products with intelligent skin detection technology include applications (APP) and beauty mirrors on mobile phone platforms. When users use the APP on the mobile phone platform to perform intelligent skin detection, the color temperature of the photo is fixed, and key skin detection items such as pores and red areas can be accurately analyzed to ensure the accuracy of intelligent skin detection. However, this method requires users to specifically open the mobile phone APP and set up the phone to take pictures, which does not provide a good user experience. The beauty mirror with intelligent skin detection function uses non-sensing skin technology, which does not require users to specifically set up the camera to take pictures, reducing tedious operations and improving user experience.

[0004] However, since the above-mentioned color-related skin detection items have certain requirements on the color temperature when collecting facial images, when using a beauty mirror for non-sensing skin, the color temperature of the beauty mirror changes arbitrarily before and after the user puts on and removes makeup. Under different color temperatures, the colors of color-related skin detection items such as acne, acne marks and spots are obviously different, and the detection accuracy is difficult to guarantee. Summary of the invention

[0005] The present application provides a method and device for skin detection, which is beneficial to improving the accuracy of skin detection when no skin is sensed, obtaining more stable and accurate measurement results, thereby improving the user experience.

[0006] In a first aspect, a skin detection method is provided, which is applied to a device including a camera and a light source, the method including: obtaining a first color temperature, the first color temperature being the color temperature required by a user; causing the light source to present a second color temperature and a third color temperature at a target frequency interval, the second color temperature being the color temperature required for skin detection, and the third color temperature being used to synthesize the first color temperature with the second color temperature; when the light source presents the second color temperature, collecting a face image through a camera; performing skin detection on the face image to obtain a skin detection result.

[0007] It should be understood that the first color temperature is the color temperature adjusted by the user according to his or her needs when using the above-mentioned device. The second color temperature is the color temperature required for skin detection. Skin detection is performed on the face image obtained under this color temperature, which can maximize the accuracy of skin detection. The above-mentioned device can determine the third color temperature based on the first color temperature and the second color temperature using the Planck color temperature curve and the color temperature mixing theory, and then make the light source present the second color temperature and the third color temperature at the target frequency interval. Due to the persistence of vision effect of the human eye, the color temperature felt by the user is still the first color temperature.

[0008] The method for skin detection in the embodiment of the present application sets the target frequency and the second color temperature according to the color temperature mixing theory, calculates the third color temperature from the first color temperature required by the user, and obtains a face image and performs skin detection by making the light source present the second color temperature and the third color temperature at the target frequency interval, and taking a photo with a camera when the light source displays the second color temperature. Due to the visual persistence effect of the human eye, the color temperature felt by the user is always the first color temperature T required by the user. Therefore, in the embodiment of the present application, the user can adjust the color temperature at will without affecting the color temperature of the camera system. The camera color temperature is always used when measuring skin, which improves the accuracy of skin detection when no skin is sensed, obtains more stable and accurate measurement results, and improves the user experience.

[0009] In combination with the first aspect, in certain implementations of the first aspect, making the light source present a second color temperature and a third color temperature at target frequency intervals includes: making the light source present the second color temperature in a first time period; making the light source present the third color temperature in a second time period; wherein the first time period and the second time period are two consecutive time periods and constitute a display cycle, and the length of the display cycle is determined based on the target frequency.

[0010] It should be understood that the reciprocal of the target frequency is the length of a display cycle, and the light source presents the second color temperature in the first time period of at least one continuous display cycle, and presents the third color temperature in the second time period of at least one continuous display cycle, so that the second color temperature and the third color temperature can be presented at the target frequency interval. In this process, the color temperature felt by the user is the first color temperature.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the light source includes a first light source and a second light source; making the light source present a second color temperature in a first time period includes: within the first time period, making the first light source present the second color temperature and making the second light source in an off state; making the light source present a third color temperature in the second time period includes: within the second time period, making the second light source present the third color temperature and making the first light source in an off state.

[0012] It should be understood that the interval display of the second color temperature and the third color temperature can be achieved by two sets of light sources, that is, the first light source presents the second color temperature in the first time period and is turned off in the second time period; the second light source is turned off in the first time period and presents the third color temperature in the second time period, so as to achieve presenting the second color temperature and the third color temperature at the target frequency interval. During this process, the color temperature felt by the user is the first color temperature.

[0013] Combined with the first aspect, in some implementations of the first aspect, the length of the first time period is determined based on the display period and the first duty cycle of the second color temperature, and the length of the second time period is determined based on the display period and the second duty cycle of the third color temperature.

[0014] The first duty cycle is the proportion of the length of the first time period in the length of one display period. Therefore, the length of the first time period can be obtained based on the length of the display period and the first duty cycle of the second color temperature. It should be understood that this first duty cycle can be preset. Similarly, the second duty cycle is the proportion of the length of the second time period in the length of one display period. Therefore, the length of the second time period can be obtained based on the length of the display period and the second duty cycle of the third color temperature. It should be understood that this second duty cycle can be preset.

[0015] Exemplarily, the above first duty cycle and second duty cycle can be equal, both being 50%.

[0016] It should be understood that in addition to the above method of determining the length of the first time period and the length of the second time period according to the duty cycle, the length of the first time period and the length of the second time period can also be preset or determined according to the brightness of the light source, and the embodiments of the present application do not limit this.

[0017] Combined with the first aspect, in some implementations of the first aspect, after collecting a face image through a camera, the method further includes: making the light source present the first color temperature.

[0018] It should be understood that after the camera collects the face image, the above device can perform skin detection on the face image. During the detection process, the light source does not need to always be in the state of displaying different color temperatures at the target frequency interval. Therefore, the light source can be changed from alternately presenting two different color temperatures to fixedly presenting one color temperature, that is, the first color temperature, which can reduce the adverse impact of the interval change of the color temperature on the user's eyes.

[0019] Combined with the first aspect, in some implementations of the first aspect, the first color temperature is T, the second color temperature is T1, and the third color temperature is T2, where T2 < T < T1; making the light source present the first color temperature includes: in the i-th display period among N consecutive display periods, updating the second color temperature T1 and the first duty cycle of the second color temperature to

[0020] T1(i)=T1-i*ΔT1,

[0021]

[0022] In the i-th display cycle, the third color temperature T2 and the second duty cycle of the third color temperature are Updated to

[0023] T2(i)=T2+i*ΔT2,

[0024]

[0025] Where N is a positive integer, i ranges from {1,2,…N},

[0026] In a second aspect, a skin detection device is provided, which is used to execute the method in any possible implementation of the first aspect. Specifically, the device includes a module for executing the method in any possible implementation of the first aspect.

[0027] In a third aspect, another skin detection device is provided, including a processor, the processor is coupled to a memory, and can be used to execute instructions in the memory to implement the method in any possible implementation of the first aspect. Optionally, the device also includes a memory. Optionally, the device also includes a communication interface, and the processor is coupled to the communication interface.

[0028] In a fourth aspect, a processor is provided, comprising: an input circuit, an output circuit and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first aspect.

[0029] In the specific implementation process, the processor can be a chip, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.

[0030] In a fifth aspect, a processing device is provided, comprising a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method in any possible implementation of the first aspect.

[0031] Optionally, there are one or more processors and one or more memories.

[0032] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0033] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0034] It should be understood that the relevant data interaction process, such as sending indication information, can be a process of outputting indication information from a processor, and receiving capability information can be a process of receiving input capability information from a processor. Specifically, the processed output data can be output to a transmitter, and the input data received by the processor can come from a receiver. Among them, the transmitter and the receiver can be collectively referred to as a transceiver.

[0035] The processing device in the fifth aspect mentioned above can be a chip. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0036] In a sixth aspect, a beauty mirror is provided, comprising a camera, a light source, and a processor, wherein the processor is used to execute the method in any possible implementation of the first aspect.

[0037] In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when executed on a computer, enables the computer to execute a method in any possible implementation of the first aspect.

[0038] In an eighth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method in any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 is a schematic diagram of a beauty mirror applicable to an embodiment of the present application;

[0040] Figure 2is a schematic flow chart of a skin detection method provided in an embodiment of the present application;

[0041] Figure 3 is a schematic diagram of a color temperature adjustment interface provided in an embodiment of the present application;

[0042] Figure 4 is a schematic diagram of another color temperature adjustment interface provided in an embodiment of the present application;

[0043] Figure 5 It is a schematic diagram of an LED color temperature display principle provided in an embodiment of the present application;

[0044] Figure 6 This is a schematic diagram of LED color temperature change provided by an embodiment of the present application;

[0045] Figure 7 This is another schematic diagram of LED color temperature change provided in an embodiment of the present application;

[0046] Figure 8 is a schematic diagram of a third color temperature determination process provided in an embodiment of the present application;

[0047] Fig. 9 is a schematic diagram of a beauty mirror with two groups of LEDs provided in an embodiment of the present application;

[0048] Fig.10 It is a schematic diagram of another LED color temperature display principle provided by an embodiment of the present application;

[0049] Fig.11 This is a schematic diagram of color temperature change of two groups of LEDs provided in an embodiment of the present application;

[0050] Fig.12 This is another schematic diagram of color temperature change of two groups of LEDs provided in an embodiment of the present application;

[0051] Fig.13 is a schematic diagram showing skin detection results provided by an embodiment of the present application;

[0052] Fig.14 is another schematic diagram showing skin detection results provided in an embodiment of the present application;

[0053] Fig.15 is a schematic block diagram of a skin detection device provided in an embodiment of the present application;

[0054] Fig.16 It is a schematic block diagram of another skin detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0056] At present, intelligent skin detection technology is widely used in terminal (such as mobile phone platform) applications (application, APP) and beauty mirrors.

[0057] Regarding the application of intelligent skin detection technology in APP, when users use the APP on the mobile platform (for example, the Love Skin APP) to perform intelligent skin detection, they need to control the distance between themselves and the mobile phone and pose in a specific posture to trigger the camera in the mobile phone to capture facial images under a fixed color temperature, and analyze the facial images to obtain skin detection results.

[0058] In the above method, the color temperature of the photo is fixed, and the mobile phone can accurately analyze key skin detection items such as pores and red areas to ensure the accuracy of smart skin detection. However, this method requires users to specifically open the mobile phone APP and position the phone to take photos, which does not provide a high user experience.

[0059] The beauty mirror with intelligent skin detection function uses non-sensing skin technology. Since users generally use beauty mirrors to put on makeup, check whether the makeup is intact, or touch up makeup, the beauty mirror can collect the user's face image while the user is looking in the mirror, analyze the face image, and obtain the skin detection result. This process does not require the user to set up the camera to take pictures, which reduces tedious operations and improves the user experience. Therefore, the application of intelligent skin detection technology in beauty mirrors is introduced in detail below.

[0060] Figure 1 Schematic diagram of the beauty mirror 100 is shown. Figure 1 As shown, the beauty mirror 100 includes a mirror 101, a frame 102 surrounding the mirror, a camera 103 located at the top of the frame, a light source 104 surrounding the mirror, and a bracket 105. The camera 103 is used to obtain a facial image of the user when the user looks in the mirror. The light source 104 is dispersed on the front of the frame 102. Exemplarily, the light source 104 can be a plurality of light emitting diodes (LEDs). The LED can be composed of red, green, blue, and white (RGBW) four-primary color LEDs, and the RGBW four-primary color LEDs include four LED units of R, G, B, and W.

[0061] In addition, the beauty mirror 100 also includes a control switch ( Figure 1 ), which is used to control the on or off of the light source 104. The control switch can be arranged at the lower front side or the lower back side of the lens frame 102, or the control switch can be arranged on the bracket 105, which is not limited in the present embodiment.

[0062] Figure 1The light source 104 shown can emit light of different color temperatures according to the needs of the user, so the control switch can also control the color temperature of the light source 104. The user can adjust the color temperature of the light source 104 through the control switch and select a color temperature that meets his or her requirements.

[0063] When the smart skin detection function is turned on, the beauty mirror 100 can collect a face image at the current color temperature through the camera 103, and analyze the face image to obtain a skin detection result. This process does not require the user to set up a camera to take a photo, and is imperceptible to the user, so it is also called "non-sensing skin".

[0064] When acquiring a face image in the above-mentioned skin-free sensing process, the color temperature of the light source can be freely adjusted by the user, and the color temperature of the makeup mirror can also be changed arbitrarily before and after the user puts on or removes makeup. Under different color temperatures, the color differences of color-related skin detection items such as acne, acne marks, and spots are quite obvious, and the accuracy of skin detection is difficult to guarantee.

[0065] In view of this, the present application provides a method and device for skin detection. According to the color temperature mixing theory, the illumination frequency f and the photographing color temperature T1 are set, and another mixed color temperature T2 is calculated from the color temperature T set by the user. Two color temperatures T1 and T2 are set for the light source, and the light source is made to present these two different color temperatures at a frequency f interval. When the photographing color temperature T1 is displayed, a camera is used to take a picture to obtain a face image and perform skin detection. Due to the visual persistence effect of the human eye, the color temperature felt by the user is always the color temperature T set by the user. Therefore, in the embodiment of the present application, the user can adjust the color temperature of the beauty mirror at will without affecting the color temperature of the photographing system. When measuring skin, the beauty mirror always uses the photographing color temperature, which can improve the accuracy of skin detection when no skin is sensed, obtain more stable and accurate measurement results, and improve the user experience.

[0066] Optionally, the light source may include a first light source and a second light source. The light source presenting the photographic color temperature T1 and the mixed color temperature T2 at a frequency f interval may include: the first light source presenting the photographic color temperature T1 at a frequency f and a first duty cycle, the second light source presenting the mixed color temperature T2 at a frequency f and a second duty cycle, and the sum of the first duty cycle and the second duty cycle is 1. When the first light source presents the photographic color temperature T1, the second light source is in an off state; when the second light source presents the mixed color temperature T2, the first light source is in an off state. In this way, the beauty mirror presents the photographic color temperature T1 and the mixed color temperature T2 at a target frequency interval, and the color temperature perceived by the user according to the visual persistence effect is the first color temperature, thereby improving the user experience.

[0067] Optionally, after the camera obtains the face image, the beauty mirror can make the light source present the color temperature T set by the user. It should be understood that after the face image is obtained, the face image can be analyzed and processed, and there is no need to make the light source present the photographing color temperature T1 and the mixed color temperature T2 at the frequency f interval. Therefore, the alternating aliasing light source can be changed to a fixed light source. The user is not aware of this process, which reduces the adverse effects of the interval change of color temperature on the user's eyes.

[0068] In order to better understand the embodiments of the present application, the persistence of vision effect and color temperature mixing theory are first introduced below.

[0069] 1. Persistence of vision

[0070] The persistence of vision effect, also known as the positive afterimage, is a phenomenon in which the visual effect produced by light on the retina remains for a period of time after the light stops acting on it. It is mostly used in the shooting and projection of movies. The persistence of vision effect is caused by the reaction speed of the optic nerve, and its duration is about 1 / 16 second. For different frequencies of light, the duration of the persistence of vision is different.

[0071] 2. Planck color temperature curve and color temperature mixing theory

[0072] The Planck curve can also be called the blackbody radiation line. In blackbody radiation, the color of light varies with the temperature. The blackbody presents a gradual process from red to orange-red, yellow, yellow-white, white, and blue-white. When the color of light emitted by a light source looks the same as the color of light emitted by a blackbody at a certain temperature, the temperature of the blackbody is called the color temperature of the light source. The higher the temperature of the "blackbody", the more blue components in the spectrum and the less red components. The chromaticity diagram is a plane diagram of the function expression of the blackbody trajectory expressed in chromaticity coordinates. The change of light color of the blackbody at different temperatures forms an arc curve on the chromaticity diagram, which is called the Planck curve.

[0073] The color temperature mixing theory refers to the fact that light of two color temperatures can be mixed to obtain light of another new color temperature. It should be understood that mixing white with any other light color can make the light color lighter.

[0074] It should be understood that the skin detection method provided in the embodiment of the present application can be implemented by a device including a camera, a light source, and a skin detection function. For example, the device involved in the embodiment of the present application can be a beauty mirror or other similar products having the above-mentioned devices and functions. For example, the beauty mirror can be Figure 1 The mirror shown can be placed on a table, can also be a mirror hung on a wall, or can be a small mirror that can be moved at will, and the present application embodiment does not limit this. Figure 1The skin detection method of the embodiment of the present application is described by taking the beauty mirror 100 as an example, and the light source 104 is exemplarily referred to as LED in the following.

[0075] Figure 2 FIG. 2 is a schematic flow chart of another skin detection method 200 provided in an embodiment of the present application. Figure 2 As shown, the method 200 may include the following steps:

[0076] S201, obtaining a first color temperature of the LED. The first color temperature is the color temperature T set by the user. It should be understood that if the user does not set it, the first color temperature is the factory preset color temperature of the LED. It should also be understood that the color temperature set by the user and the factory preset color temperature can both be referred to as the color temperature required by the user.

[0077] Specifically, when the user turns on the LED on the beauty mirror 100 through the control switch, the LED will present a factory preset color temperature (also referred to as the default color temperature in the embodiment of the present application), and the user can continue to adjust the color temperature of the LED to select the color temperature he or she needs. If the user does not actively adjust the color temperature of the LED, the first color temperature is the default color temperature; if the user actively adjusts the color temperature of the LED, the first color temperature is the color temperature adjusted by the user.

[0078] In the embodiments of the present application, the user can adjust the color temperature of the LED in a variety of ways.

[0079] For example, the user can manually adjust the color temperature of the LED through a color temperature adjustment button, and the color temperature adjustment button can be located at the bottom of the front or back of the frame 102, or the color temperature adjustment button can be located on the bracket 105, which is not limited in the present embodiment. In a possible implementation, the color temperature adjustment button can be the same button as the control switch.

[0080] Exemplarily, the user can adjust the color temperature of the LED through voice commands. For example, the user's voice command can be "increase the color temperature", or "decrease the color temperature", or "set the color temperature to 3000K", etc.

[0081] For example, the user can manually adjust the color temperature of the LED by touching the mirror. In this case, the mirror has a built-in display and a touch screen operation function to display the settable color temperature range and the current color temperature for the user to select.

[0082] Figure 3 A schematic diagram of a color temperature adjustment interface is shown, such as Figure 3As shown, the color temperature range is [2000K, 8000K], which means that the user can set the color temperature to any value between 2000K and 8000K. The user can touch and move the pointer to adjust the current color temperature, or directly click the color temperature value with a finger to move the pointer to the position corresponding to the color temperature value clicked by the finger, thereby completing the setting of the first color temperature. Figure 3 It also includes brightness adjustment, and users can adjust it according to their needs. The current brightness is the brightness value corresponding to the boundary between black and white.

[0083] Figure 4 A schematic diagram of another color temperature adjustment interface is shown, such as Figure 4 As shown, the color temperature adjustment interface includes 20 color temperature values ​​for the user to choose, and each adjacent color temperature value differs by 300 K. The user can complete the setting of the first color temperature by clicking any one of the color temperature values.

[0084] Optionally, different color temperatures may correspond to different color temperature names, and the beauty mirror may also display the color temperature name corresponding to the current color temperature on the mirror as the user operates. For example, when the user sets the color temperature of the LED to 2000K, the beauty mirror displays "ruddy"; when the user sets the color temperature of the LED to 5000K, the beauty mirror displays "daylight"; when the user sets the color temperature of the LED to 8000K, the beauty mirror displays "bright moon".

[0085] S202, based on the first color temperature and the second color temperature, determine a third color temperature. The second color temperature is the color temperature required for skin detection, that is, the above-mentioned photographing color temperature T1, and the face image obtained under this color temperature can ensure the detection accuracy of the skin. The third color temperature is used to synthesize the first color temperature with the second color temperature, and the third color temperature is the above-mentioned mixed color temperature T2.

[0086] It should be understood that the second color temperature may be preset, and skin detection of a face image acquired at this color temperature can ensure the detection accuracy of the skin to the greatest extent. Exemplarily, the second color temperature T1 may be set near white light, for example, 5500K.

[0087] S203, making the LED present the second color temperature and the third color temperature at a target frequency interval.

[0088] It should be understood that the target frequency of the embodiment of the present application is a frequency that can cause the user to have a visual persistence effect, that is, the above-mentioned light frequency f. As mentioned above, the visual persistence effect is caused by the reaction speed of the optic nerve, and its time value is about 1 / 16 second, that is, the target frequency is greater than or equal to 16 Hz (HZ). Exemplarily, the target frequency can be greater than or equal to 30HZ. The embodiment of the present application enables the LED to present the second color temperature T1 and the third color temperature T2 at a target frequency interval. Due to the visual persistence effect of humans, the user perceives a mixed color temperature of the second color temperature T1 and the third color temperature T2, that is, the first color temperature T, which meets the needs of the user.

[0089] The above-mentioned presenting the second color temperature and the third color temperature at the target frequency interval may also be understood as: making the LED present the second color temperature in the first time period t1 , and making the LED present the third color temperature in the second time period t2 .

[0090] In the embodiment of the present application, the duration of a display cycle corresponding to the target frequency f is 1 / f, which is equal to the sum of t1 and t2, that is, t1 and t2 constitute a display cycle. In the embodiment of the present application, the values ​​of t1 and t2 can be determined by the following multiple possible implementations.

[0091] In a possible implementation, t1 and t2 can be determined according to the brightness of the LED. For example, the brightness of the LED presenting the second color temperature is L1, and the brightness of the LED presenting the third color temperature is L2, then t1 and t2 can be determined according to the formula L1*t1=L2*t2.

[0092] In another possible implementation, t1 and t2 may be predefined absolute durations. For example, if the target frequency is 50 Hz, then one display cycle is 0.02 seconds, and the duration of t1 may be predefined as 0.015 seconds, and the duration of t2 may be predefined as 0.005 seconds.

[0093] In another possible implementation, t1 can be determined according to the duration of a display cycle and the first duty cycle of the second color temperature, and t2 can be determined according to the duration of a display cycle and the second duty cycle of the third color temperature. The first duty cycle and the second duty cycle can be preset values, which can be calculated in an offline state, and the preset method can be implemented by experimental adjustment. Exemplarily, the first duty cycle and the second duty cycle are equal, both 50%.

[0094] It should be understood that the sum of the first duty cycle and the second duty cycle is equal to 1. The first duty cycle is the proportion of the time that the LED presents the second color temperature in the duration of a display cycle, and the second duty cycle is the proportion of the time that the LED presents the third color temperature in the duration of a display cycle. The first duty cycle and the second duty cycle can be flexibly adjusted according to the first color temperature T required by the user, can be preset, or can be determined according to the brightness of the LED presenting the second color temperature and the brightness of the LED presenting the third color temperature, which is not limited here.

[0095] Therefore, presenting the second color temperature and the third color temperature at target frequency intervals can also be understood as presenting the second color temperature T1 at the target frequency and the first duty cycle, and presenting the third color temperature T2 at the target frequency and the second duty cycle, so that the second color temperature and the third color temperature are presented alternately.

[0096] Figure 5 The schematic diagram of the principle of LED color temperature display of the embodiment of the present application is shown as follows: Figure 5 As shown, the second color temperature T1 and the third color temperature T2 are displayed alternately in a plurality of consecutive display cycles. Due to the persistence of vision effect and the color temperature mixing principle, the color temperature perceived by the user is the first color temperature T.

[0097] Exemplarily, assuming that the first duty cycle and the second duty cycle are equal, both are 50%, and the target frequency f = 40HZ, then a display cycle of the LED 1 / f = 1 / 40 = 0.025 seconds, then within 0-0.0125 seconds of a display cycle, the LED presents a second color temperature, and within 0.0125-0.025 seconds of the display cycle, the LED presents a third color temperature.

[0098] S204, when the color temperature of the LED is the second color temperature T1, a face image is collected through a camera.

[0099] Exemplarily, the beauty mirror 100 can control the camera to capture facial images when the LED presents the second color temperature T1 to ensure the accuracy of subsequent skin detection.

[0100] Optionally, the above-mentioned face image also meets basic skin detection requirements, such as the face is unobstructed, frontal, and centered in the image, etc., which is conducive to the beauty mirror to obtain more accurate face information and facilitate subsequent skin detection. Exemplarily, when the camera detects that the face is unobstructed, frontal, and centered in the image, and the LED presents the second color temperature, the current face image can be collected.

[0101] S205: Perform skin detection on the collected face image to obtain a skin detection result.

[0102] Exemplarily, the beauty mirror can use a skin detection model to perform skin detection on the face image to obtain a skin detection result.

[0103] The skin detection method of the embodiment of the present application sets the target frequency f and the second color temperature T1 according to the color temperature mixing theory, calculates the third color temperature T2 from the first color temperature T set by the user, sets two color temperatures T1 and T2 for the LED, and makes the LED present these two different color temperatures at intervals of frequency f. When the LED displays the second color temperature T1, a camera is used to take a picture to obtain a face image and perform skin detection. Due to the visual persistence effect of the human eye, the color temperature felt by the user is always the first color temperature T set by the user. Therefore, in the embodiment of the present application, the user can adjust the color temperature of the beauty mirror at will without affecting the color temperature of the camera system. The camera color temperature is always used when measuring the skin, which improves the accuracy of skin detection when no skin is sensed, obtains more stable and accurate measurement results, and improves the user experience.

[0104] Optionally, the method further includes: S206, making the LED present a first color temperature.

[0105] It should be understood that after acquiring the face image, the beauty mirror can analyze and process the face image, and the LED does not need to present the second color temperature and the third color temperature at the target frequency interval. Therefore, the beauty mirror can present the LED at the first color temperature, that is, change the alternating aliased light source to a fixed light source, and the user will not perceive this process. In this way, the adverse effects of the interval change of color temperature on the user's eyes can be reduced.

[0106] The process of presenting the first color temperature may be implemented through the following two possible implementations, which are not limited in the embodiments of the present application.

[0107] In a first possible implementation manner, the LED may be directly switched from the second color temperature or the third color temperature to the first color temperature. Figure 6 The schematic diagram of LED color temperature change is shown in Figure 6 In the embodiment, the color temperature of the LED varies between the second color temperature T1 and the third color temperature T2 in the manner of S203. After the face image is collected, the LED directly presents the first color temperature T.

[0108] In a second possible implementation manner, the LED may gradually change from the second color temperature or the third color temperature to the first color temperature. Figure 7 Another schematic diagram of LED color temperature change is shown. Figure 7 In the embodiment, the color temperature of the LED changes between the second color temperature T1 and the third color temperature T2 in the manner of S203. After the face image is collected, the LED can change the second color temperature from T1 to T1(1)=T1+ΔT1, where ΔT1 is the change step of the second color temperature, and the duty cycle is changed to The third color temperature is changed from T2 to T2(1)=T2-ΔT2, where ΔT2 is the change step of the third color temperature, and the duty cycle is changed to Displayed at the second color temperature and the third color temperature intervals. In the next display cycle, the LED can further modify the second color temperature from T1(1) to T1(2) = T1 + 2*ΔT1, and modify the duty cycle to Modify the third color temperature from T2(1) to T2(2) = T2 - 2*ΔT2, and modify the duty cycle to In the next display cycle, the color temperature of the LED is modified to the first color temperature T.

[0109] Specifically, the principle of the above second possible implementation method is as follows:

[0110] According to Planck's curve, the gradual change process of the above color temperature values can be divided into a finite number of steps. Assuming that this process includes N steps, where N is an integer greater than 0. The color temperature of the LED gradually changes from the second color temperature T1 to the first color temperature T, and the step size of the color temperature change can be as follows:

[0111]

[0112] The color temperature of the LED gradually changes from the third color temperature T2 to the first color temperature T, and the step size of the color temperature change can be as follows:

[0113]

[0114] Assume T2 < T < T1. Then, each time the color temperature changes, at the i-th (0 < i ≤ N) step, the color temperature T1(i) of the second color temperature change and the duty cycle of the time presented by this color temperature within the cycle Can be as follows respectively:

[0115] T1(i) = T1 - i*ΔT1

[0116]

[0117] Among them, Is the duty cycle of the second color temperature T1 within one cycle;

[0118] At the i-th (0 < i ≤ N) step, the color temperature T2(i) of the third color temperature change and the proportion of the time presented by this color temperature within the cycle Can be as follows respectively:

[0119] T2(i) = T2 + i*ΔT2

[0120]

[0121] Among them, Is the proportion of the third color temperature T2 within one cycle.

[0122] It should be understood that the above S206 can be executed after S204, can be executed after S205, or can be executed in parallel with S205, and the embodiment of the present application is not limited to this.

[0123] Combine the following Figure 8 The process of determining the third color temperature in the embodiment of the present application is described in detail. In a possible implementation of the above S202, the third color temperature is determined according to the Planck color temperature curve and the color temperature mixing theory, specifically including the following steps:

[0124] 1) According to the black body color temperature-CIE1960 uniform color space (UCS) chromaticity coordinate lookup table interpolation method, the chromaticity coordinate of the second color temperature T1 is determined as and the chromaticity coordinates (u T ,v T ).

[0125] 2) If Figure 8 As shown, according to the color temperature-chromaticity coordinates chart, two points T close to the color temperature T on the blackbody radiation Planck curve are selected. l and T r , and their chromaticity coordinates are and

[0126] 3) Based on these two points, the approximate calculation of the passing point (u T ,v T ) and the slope of the curve perpendicular to the Planck curve of the CIE1960 chromaticity diagram. The equation of the vertical line can be expressed as:

[0127]

[0128] 4) In Figure 8 The chromaticity coordinates of the third color temperature value T2 are traversed on the Planck curve shown in FIG. Get past point and Point The equation of the straight line is:

[0129]

[0130] 5) From the equation of the vertical line and the equation of the straight line, we get the coordinates of the intersection point (u c ,v c ), and u c and v c u T , v T , The function is:

[0131]

[0132] 6) Convert the formula obtained in the previous step from chromaticity coordinates to CIE-XYZ formula as shown below:

[0133]

[0134] 7) Settings Then we get

[0135]

[0136] 8) Passing point and Point The intersection of the straight line and the vertical line satisfies the proportional relationship of the CIE-XYZ coordinates:

[0137]

[0138] And there is From this we can get:

[0139]

[0140]

[0141] 9) Change the chromaticity coordinate point on the Planck curve Converts to:

[0142]

[0143] The CIE-XYZ coordinates of the converted third color temperature value are calculated as follows: In addition, in order to make the third color temperature value on the Planck curve, the chromaticity coordinate point of the third color temperature value must satisfy Among them, δ is the threshold.

[0144] The LEDs in the embodiment of the present application may be one group of LEDs or two groups of LEDs. In a possible implementation, Figure 1 The LEDs in the beauty mirror 100 shown in the figure form a group of LEDs, such as Figure 1 As shown, the LED group can be composed of multiple LEDs of four primary colors of R, G, B, and W connected in series.

[0145] In another possible implementation, Figure 1 The LEDs in the beauty mirror 100 shown include two groups of LEDs, each group of LEDs can be composed of multiple LEDs of four primary colors R, G, B, and W connected in series. The two groups of LEDs can be connected in parallel to display independently. The two groups of LEDs are controlled by a crystal oscillator. Fig. 9 FIG. 1 shows a schematic diagram of a beauty mirror with two groups of LEDs. Fig. 9As shown, the light source 104 may include a plurality of LEDs 1041 of four primary colors of R, G, B, and W and a plurality of LEDs 1042 of four primary colors of R, G, B, and W (represented by a fill pattern in the figure). In the embodiment of the present application, a group of LEDs formed by connecting LEDs 1041 in series is collectively referred to as LED 1, and a group of LEDs formed by connecting LEDs 1042 in series is collectively referred to as LED 2. LED 1 and LED 2 may be connected in parallel, and LED 1 and LED 2 may be arranged at intervals. Both LED 1 and LED 2 are connected to the same set of crystal oscillator clocks, and the crystal oscillator clocks may uniformly control the off-on frequency of LED 1 and LED 2.

[0146] It should be understood that the above-mentioned LED 1 and LED 2 may also have other names, which are not limited in the embodiments of the present application. Fig. 9 This is only an example of the arrangement of LED 1 and LED 2. LED 1 and LED 2 may also be arranged in other ways, such as inner circle LED 1 and outer circle LED 2, or inner circle LED 2 and outer circle LED 1, etc. This embodiment of the present application is not limited to this.

[0147] In the case where the beauty mirror includes two sets of LEDs, Fig.10 FIG. 2 shows another schematic diagram of the principle of LED color temperature display according to an embodiment of the present application. Fig.10 As shown, LED 1 presents the second color temperature T1, and LED 2 presents the third color temperature T2. The beauty mirror can control LED 1 and LED 2 to be turned on at intervals in multiple consecutive display cycles through a crystal oscillator clock, thereby displaying the second color temperature T1 and the third color temperature T2 at intervals. Due to the visual persistence effect and the color temperature mixing principle, the color temperature perceived by the user is the first color temperature T.

[0148] Optionally, the LED 1 can be connected to a camera in the form of a hardware trigger signal. When the LED 1 is on, the camera can be triggered to capture a facial image.

[0149] In this case, the above S206 may specifically be to make LED 1 and LED 2 present the first color temperature, which may include two possible implementation methods.

[0150] In a first possible implementation, LED 1 can be directly switched from the second color temperature to the first color temperature, LED 1 is set to a constant light state, and LED 2 is turned off; or, LED 2 can be directly switched from the third color temperature to the first color temperature, LED 2 is set to a constant light state, and LED 1 is turned off. Fig.11 Figure 2 is a schematic diagram of the color temperature change of two groups of LEDs. Fig.11As shown, LED 1 and LED 2 are alternately turned on in a plurality of consecutive cycles according to the above S203. After the face image is collected, LED 1 is directly turned off, and the color temperature of LED 2 is directly presented as the first color temperature T, and LED 2 is in a constant light state. In this way, the beauty mirror still presents the first color temperature T to the user.

[0151] In a second possible implementation, LED 1 can gradually change from the second color temperature to the first color temperature and remain on, and LED 2 can gradually change from the third color temperature to off, or LED 2 can gradually change from the third color temperature to the first color temperature and remain on, and LED 1 can gradually change from the second color temperature to off. Fig.12 Another schematic diagram of the color temperature change of two groups of LEDs is shown in FIG. Fig.12 As shown, LED 1 and LED 2 are turned on alternately in a plurality of consecutive cycles according to the above S203. After the face image is collected, LED 1 can change the second color temperature from T1 to T1(1)=T1+ΔT1, where ΔT1 is the change step of the second color temperature, and the duty cycle is changed to LED 2 can change the third color temperature from T2 to T2(1)=T2-ΔT2, where ΔT2 is the change step of the third color temperature, and the duty cycle is changed to The LED 1 is displayed at intervals of T1(1) and T2(1). In the next display cycle, the second color temperature of LED 1 can be changed from T1(1) to T1(2)=T1+2*ΔT1, and the duty cycle is changed to LED 2 can change the third color temperature from T2(1) to T2(2)=T2-2*ΔT2, and the duty cycle is changed to In the next display cycle, the color temperature of LED 1 is modified to the first color temperature T, and LED 2 is turned off.

[0152] It should be understood that the principle of determining the color temperature and duty cycle of the above two groups of LEDs during the gradual change process is similar to the principle of determining the color temperature and duty cycle of one group of LEDs during the gradual change process, and will not be repeated here.

[0153] The embodiment of the present application not only reduces the adverse effects of the interval changes in color temperature on the user's eyes, but also can turn off a group of LEDs, which is beneficial for saving energy.

[0154] Optionally, after S205, the beauty mirror may also display the skin detection result to the user.

[0155] In a first possible implementation, the beauty mirror 100 can display the skin detection result on the mirror 101. Specifically, the beauty mirror 100 can have a built-in display screen, such as Fig.13As shown, after the beauty mirror completes the skin detection, the skin detection results can be displayed on the mirror 101: acne 89 points, spots 74 points, acne marks 84 points, blackheads 82 points, fine lines 88 points and eye bags 94 points for users to view.

[0156] In a second possible implementation, the beauty mirror 100 and a terminal device with a display screen (such as a mobile phone, a computer, and a tablet, etc.) are connected via wireless communication technology, and the wireless communication technology may be, for example, Bluetooth, WiFi, etc. After completing the skin detection, the beauty mirror may send the skin detection result to the terminal device via the wireless communication technology, and the terminal device receives and displays the skin detection result on the display screen for the user to view. Fig.14 The figure is a schematic diagram showing the skin detection result displayed on the mobile phone interface. The user can operate the mobile phone and bind the beauty mirror through the APP in the mobile phone. The APP obtains the skin detection result of the beauty mirror and displays the result on the mobile phone interface. Fig.14 As shown, the skin test results include: acne 89 points, pigmentation 74 points, acne scars 84 points, blackheads 82 points, fine lines 88 points and eye bags 94 points.

[0157] It should be understood that the skin detection method of the embodiment of the present application can be authorized to be turned on in a variety of ways, or it can be turned on by default and turned off by the user, and the embodiment of the present application is not limited to this. Exemplarily, the user can turn on or off the skin detection method of the embodiment of the present application through voice control. For example, the voice command is "turn on the skin detection function". When the beauty mirror detects the command, the process of the above method 200 can be executed. Exemplarily, the user can also turn on or off the skin detection method of the embodiment of the present application through gesture control. For example, the gesture command is the "OK" gesture. When the beauty mirror detects the command, the process of the above method 200 can be executed. Exemplarily, the user can also bind the beauty mirror to a mobile phone APP and set it through the APP to turn on or off the skin detection method of the embodiment of the present application.

[0158] Combined with the above Figures 2 to 14 , describes in detail the skin detection method according to the embodiment of the present application, and will be combined with Figure 15 to Figure 16 , a device for skin detection according to an embodiment of the present application is described in detail.

[0159] Fig.15 A skin detection device 1500 provided in an embodiment of the present application is shown. The device 1500 includes: an acquisition unit 1510 and a processing unit 1520 .

[0160] The acquisition unit 1510 is used to acquire a first color temperature, where the first color temperature is a color temperature required by a user.

[0161] The processing unit 1520 is configured to: cause the light source to present a second color temperature and a third color temperature at a target frequency interval, where the second color temperature is the color temperature required for skin detection, and the third color temperature is used to synthesize a first color temperature with the second color temperature; when the light source presents the second color temperature, collect a face image through the camera; perform skin detection on the face image to obtain a skin detection result.

[0162] Optionally, the processing unit 1520 is specifically configured to: cause the light source to present the second color temperature in a first time period; cause the light source to present the third color temperature in a second time period; where the first time period and the second time period are two consecutive time periods and form a display cycle, and the length of the display cycle is determined based on the target frequency.

[0163] Optionally, the light source includes a first light source and a second light source; the processing unit 1520 is further configured to: in the first time period, cause the first light source to present the second color temperature and cause the second light source to be in an off state; in the second time period, cause the second light source to present the third color temperature and cause the first light source to be in an off state.

[0164] Optionally, the length of the first time period is determined based on the display cycle and the first duty ratio of the second color temperature, and the length of the second time period is determined based on the display cycle and the second duty ratio of the third color temperature.

[0165] Optionally, the processing unit 1520 is specifically configured to: cause the light source to present the first color temperature.

[0166] Optionally, the first color temperature is T, the second color temperature is T1, and the third color temperature is T2, where T2 < T < T1; the processing unit 1520 is further configured to: in the i-th display cycle among N consecutive display cycles, update the second color temperature T1 and the first duty ratio of the second color temperature to

[0167] T1(i) = T1 - i * ΔT1,

[0168]

[0169] In the i-th display cycle, update the third color temperature T2 and the second duty ratio of the third color temperature to

[0170] T2(i) = T2 + i * ΔT2,

[0171]

[0172] where N is a positive integer, and i takes values from {1, 2,... N},

[0173] It should be understood that the device 1500 here is embodied in the form of a functional module. The term "unit" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art can understand that the device 1500 can be specifically configured in the beauty mirror of the above-mentioned embodiment, so that the beauty mirror implements the various processes and / or steps in the above-mentioned method embodiment. To avoid repetition, it will not be repeated here.

[0174] The above device 1500 has the function of implementing the corresponding steps performed by the makeup mirror in the above method; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0175] In the embodiments of the present application, Fig.15 The device 1500 may also be a chip or a chip system, such as a system on chip (SoC).

[0176] Fig.16 Another skin detection device 1600 provided in an embodiment of the present application is shown, and the skin detection device 1600 may include: a processor 1610, a camera 1620, and a light source 1630. The processor 1610 is used to: obtain a first color temperature, which is the color temperature required by the user; make the light source present a second color temperature and a third color temperature at a target frequency interval, the second color temperature is the color temperature required for skin detection, and the third color temperature is used to synthesize the first color temperature with the second color temperature; when the light source presents the second color temperature, collect a face image through the camera; perform skin detection on the face image to obtain a skin detection result.

[0177] Optionally, the processor 1610 is specifically used to: make the light source present a second color temperature in a first time period; make the light source present a third color temperature in a second time period; wherein the first time period and the second time period are two consecutive time periods and constitute a display cycle, and the length of the display cycle is determined based on the target frequency.

[0178] Optionally, the light source 1630 includes a first light source and a second light source; the processor 1610 is further used to: in a first time period, make the first light source present a second color temperature and make the second light source be in an off state; in a second time period, make the second light source present a third color temperature and make the first light source be in an off state.

[0179] Optionally, the length of the first time period is determined based on the display period and the first duty ratio of the second color temperature, and the length of the second time period is determined based on the display period and the second duty ratio of the third color temperature.

[0180] Optionally, the processor 1610 is specifically configured to: cause the light source to present a first color temperature.

[0181] Optionally, the first color temperature is T, the second color temperature is T1, and the third color temperature is T2, where T2 < T < T1; the processor 1610 is further configured to: within the i-th display period among N consecutive display periods, update the second color temperature T1 and the first duty ratio of the second color temperature to

[0182] T1(i) = T1 - i * ΔT1,

[0183]

[0184] Within the i-th display period, update the third color temperature T2 and the second duty ratio of the third color temperature to

[0185] T2(i) = T2 + i * ΔT2,

[0186]

[0187] where N is a positive integer, and i takes values from {1, 2,... N},

[0188] It should be understood that the device 1600 may specifically be the beauty mirror in the above embodiments, or alternatively, the functions of the beauty mirror in the above embodiments may be integrated in the device 1600, and the device 1600 may be used to execute each step and / or process corresponding to the beauty mirror in the above method embodiments.

[0189] The present application further provides a processing device configured in a beauty mirror. The processing device may include a processor and a communication interface. The communication interface is coupled to the processor. The communication interface is used to input and / or output information. The information includes at least one of instructions and data. The above processor is used to execute a computer program to cause the beauty mirror to execute the method in any of the above method embodiments.

[0190] The embodiments of the present application further provide another processing device configured in a beauty mirror. The processing device may include a processor and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory to cause the beauty mirror to execute the method in any of the above method embodiments.

[0191] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0192] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0193] The present application also provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to implement the method corresponding to the beauty mirror in the above embodiment.

[0194] The present application also provides a chip system, which is used to support the above-mentioned beauty mirror to implement the functions shown in the embodiments of the present application.

[0195] The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the beauty mirror shown in the above embodiment.

[0196] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0197] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0198] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0199] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0200] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0201] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0202] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for skin detection, characterized in that: Applied to a device including a camera and a light source, the method comprises: Acquire a first color temperature, where the first color temperature is the color temperature required by the user; Make the light source present a second color temperature and a third color temperature at a target frequency interval; wherein the second color temperature is the color temperature required for skin detection, and the third color temperature is used to synthesize the first color temperature with the second color temperature; When the light source presents the second color temperature, collecting a facial image through the camera; Perform skin detection on the face image to obtain a skin detection result.

2. The method according to claim 1, characterized in that The step of causing the light source to present the second color temperature and the third color temperature at a target frequency interval comprises: Making the light source present the second color temperature in a first time period; In a second time period, the light source is caused to present the third color temperature; The first time period and the second time period are two consecutive time periods and constitute a display cycle, and the length of the display cycle is determined based on the target frequency.

3. The method according to claim 2, characterized in that The light source comprises a first light source and a second light source; The step of causing the light source to present the second color temperature during the first time period includes: During the first time period, the first light source is made to present the second color temperature, and the second light source is made to be in an off state; The step of causing the light source to present the third color temperature during the second time period comprises: In the second time period, the second light source is made to present the third color temperature, and the first light source is made to be in a closed state.

4. The method according to claim 2 or 3, characterized in that: The length of the first time period is determined based on the display period and a first duty cycle of the second color temperature, and the length of the second time period is determined based on the display period and a second duty cycle of the third color temperature.

5. The method according to any one of claims 1 to 3, characterized in that After collecting the facial image by the camera, the method further includes: The light source is made to present the first color temperature.

6. The method according to claim 5, characterized in that The first color temperature is T, the second color temperature is T1, and the third color temperature is T2. Among them, let T2 <T<T1; The step of causing the light source to present the first color temperature comprises: In the i-th display cycle of the consecutive N display cycles, the second color temperature T1 and the first duty cycle of the second color temperature are Updated to T1(i)=T1-i*ΔT1, In the i-th display cycle, the third color temperature T2 and the second duty cycle of the third color temperature are Updated to T2(i)=T2+i*ΔT2, Where N is a positive integer, i ranges from {1,2,…N}, 7. A skin detection device, characterized in that: include: Processor, camera and light source; The processor is used to obtain a first color temperature, which is the color temperature required by the user; enable the light source to present a second color temperature and a third color temperature at a target frequency interval; wherein the second color temperature is the color temperature required for skin detection, and the third color temperature is used to synthesize the first color temperature with the second color temperature; when the light source presents the second color temperature, a face image is captured by the camera; and skin detection is performed on the face image to obtain a skin detection result.

8. The device according to claim 7, characterized in that The processor is specifically used for: Making the light source present the second color temperature in a first time period; In a second time period, the light source is caused to present the third color temperature; The first time period and the second time period are two consecutive time periods and constitute a display cycle, and the length of the display cycle is determined based on the target frequency.

9. The device according to claim 8, characterized in that The light source comprises a first light source and a second light source; The processor is further configured to: During the first time period, the first light source is made to present the second color temperature, and the second light source is made to be in an off state; In the second time period, the second light source is made to present the third color temperature, and the first light source is made to be in a closed state.

10. The device according to claim 8 or 9, characterized in that The length of the first time period is determined based on the display period and a first duty cycle of the second color temperature, and the length of the second time period is determined based on the display period and a second duty cycle of the third color temperature.

11. The device according to any one of claims 7 to 9, characterized in that The processor is specifically used for: The light source is made to present the first color temperature.

12. The device according to claim 11, characterized in that The first color temperature is T, the second color temperature is T1, and the third color temperature is T2. Among them, let T2 <T<T1; The processor is further configured to: In the i-th display cycle of the consecutive N display cycles, the second color temperature T1 and the first duty cycle of the second color temperature are Updated to T1(i)=T1-i*ΔT1, In the i-th display cycle, the third color temperature T2 and the second duty cycle of the third color temperature are Updated to T2(i)=T2+i*ΔT2, Where N is a positive integer, i ranges from {1,2,…N}, 13. A skin detection device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the device is caused to execute the method according to any one of claims 1 to 6.

14. A makeup mirror, characterized in that: include: A camera, a light source, and a processor, wherein the processor is configured to execute the method according to any one of claims 1 to 6.

15. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 6.

16. A chip system, characterized in that: It comprises: a processor, configured to call and run a computer program from a memory, so that a device equipped with the chip system executes the method according to any one of claims 1 to 6.

17. A computer program product, comprising computer program code, characterized in that: When the computer program code is executed on a computer, the computer is caused to implement the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Color temperature regulating device for illumination, illumination apparatus, and method of regulating color temperature

    CN103104833A

  • Photographing method and device, computer readable storage medium and computer equipment

    CN108012134A