CN115116104A - Method and apparatus for skin detection - Google Patents

Method and apparatus for skin detection Download PDF

Info

Publication number
CN115116104A
CN115116104A CN202110304929.3A CN202110304929A CN115116104A CN 115116104 A CN115116104 A CN 115116104A CN 202110304929 A CN202110304929 A CN 202110304929A CN 115116104 A CN115116104 A CN 115116104A
Authority
CN
China
Prior art keywords
color temperature
light source
skin detection
period
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110304929.3A
Other languages
Chinese (zh)
Inventor
饶刚
卢曰万
丁欣
郜文美
赵琳
周一丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202110304929.3A priority Critical patent/CN115116104A/en
Priority to PCT/CN2022/080688 priority patent/WO2022194098A1/en
Publication of CN115116104A publication Critical patent/CN115116104A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/60Extraction of image or video features relating to illumination properties, e.g. using a reflectance or lighting model
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source

Abstract

The application provides a skin detection method and device, which are beneficial to improving the skin detection accuracy in the case of no sensing skin and obtaining a more stable and accurate measurement result, thereby improving the user experience. The method is applied to equipment comprising a camera and a light source, and comprises the following steps: acquiring a first color temperature, wherein the first color temperature is the color temperature required by a user; enabling 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 a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature; when the light source presents a second color temperature, a face image is collected through the camera; and carrying out skin detection on the face image to obtain a skin detection result.

Description

Method and apparatus for skin detection
Technical Field
The present application relates to the field of skin detection technologies, and in particular, to a method and an apparatus for skin detection.
Background
With the development of science and technology, science and technology have become a new fashion, and the application of intelligent skin detection technology is more and more extensive. The intelligent skin detection technology can determine the skin condition of the human face by detecting the human face image recognition, for example, detect and analyze color-related skin detection items such as pockmarks, color spots and the like in the human face image, and generate a skin detection report to be provided for a user so that the user can be used as a skin beautifying and skin care reference.
Currently, the product forms of science and technology aided beauty with intelligent skin detection technology include Application (APP) and cosmetic mirror on a mobile phone platform. When the user utilizes the APP of the mobile phone platform to carry out intelligent skin detection, the photographing color temperature is fixed, and key skin detection items such as pores and red areas can be accurately analyzed, so that the precision of intelligent skin detection is ensured. However, the method requires the user to specially open the mobile phone APP and set the mobile phone to take a picture, and the user experience is not high. And what makeup mirror that has intelligent skin test function adopted is that no sensing skin technique need not the user and puts the equipment of shooing specially well and shoot, reduces loaded down with trivial details operation, has improved user experience.
However, since the color-related skin detection items have certain requirements on the color temperature when the face image is collected, when the makeup mirror is used for skin sensorless treatment, the color temperature of the makeup mirror varies randomly before and after makeup application and makeup removal by a user, the color difference of the color-related skin detection items such as pox, acne mark and color spot is obvious at different color temperatures, and the detection accuracy is difficult to guarantee.
Disclosure of Invention
The application provides a method and a device for skin detection, which are beneficial to improving the skin detection accuracy in the absence of sensing skin and obtaining a more stable and accurate measurement result, thereby improving the user experience.
In a first aspect, a method for skin detection is provided, which is applied to an apparatus including a camera and a light source, and includes: acquiring a first color temperature, wherein the first color temperature is the color temperature required by a user; enabling 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 a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature; when the light source presents a second color temperature, a face image is collected through the camera; and carrying out skin detection on the face image to obtain a skin detection result.
It should be understood that the first color temperature is a color temperature that is adjusted according to the user's own needs when the user uses the above-mentioned apparatus. The second color temperature is the color temperature required by skin detection, and the skin detection is performed on the face image acquired at the color temperature, so that the detection precision of the skin can be ensured to the greatest extent. The above apparatus may determine the third color temperature using a planck color temperature curve and a color temperature mixing theory based on the first color temperature and the second color temperature, and then cause the light source to present the second color temperature and the third color temperature at a target frequency interval, and the color temperature felt by the user is still the first color temperature due to a persistence of vision effect of human eyes.
According to the skin detection method, the target frequency and the second color temperature are set according to the color temperature mixing theory, the third color temperature is calculated according to the first color temperature required by a user, the second color temperature and the third color temperature are presented by the light source at the target frequency interval, and the camera is used for shooting when the light source displays the second color temperature, so that a face image is obtained, and skin detection is carried out. Due to the persistence of vision effect of the human eye, the color temperature perceived by the user is always the first color temperature T desired by the user. Therefore, in the embodiment of the application, the color temperature can be adjusted at will by the user without influencing the color temperature of the photographing system, the photographing color temperature is always adopted when the skin is measured, the skin detection accuracy is improved when no sensing skin exists, a more stable and accurate measurement result is obtained, and the user experience is improved.
With reference to the first aspect, in certain implementations of the first aspect, causing the light source to present the second color temperature and the third color temperature at the target frequency interval includes: causing the light source to exhibit a second color temperature for a first period of time; causing the light source to present a third color temperature for a second time period; wherein the first time period and the second time period are two consecutive time periods and constitute one display cycle, and the length of the display cycle is determined based on the target frequency.
It will be appreciated that the inverse of the target frequency is the length of one display period, and that the light source exhibits a second color temperature for a first time period in at least one successive display period and a third color temperature for a second time period in at least one successive display period, such that the second and third color temperatures may be achieved at the target frequency interval. In this process, the color temperature experienced by the user is the first color temperature.
With reference to the first aspect, in certain implementations of the first aspect, the light source includes a first light source and a second light source; causing the light source to exhibit a second color temperature for a first period of time, comprising: in a first time period, enabling the first light source to present a second color temperature and enabling the second light source to be in a closed state; causing the light source to assume a third color temperature for a second time period, comprising: and in a second time period, the second light source is enabled to present a third color temperature, and the first light source is enabled to be in an off state.
It will be appreciated that the spaced display of the second and third color temperatures may be achieved by two sets of light sources, i.e. the first light source exhibits the second color temperature for a first period of time and is switched off for a second period of time; the second light source is turned off for a first time period and exhibits a third color temperature for a second time period, thereby achieving the second color temperature and the third color temperature at the target frequency interval. In this process, the color temperature experienced by the user is the first color temperature.
With reference to the first aspect, in certain implementations of the first aspect, 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.
The first duty ratio is a proportion of the length of the first time period in the length of one display period, so that the length of the first time period can be obtained based on the length of the display period and the first duty ratio of the second color temperature. It should be appreciated that the first duty cycle may be preset. Similarly, the second duty ratio is a ratio of the length of the second time period to the length of one display period, so that the length of the second time period can be obtained based on the length of the display period and the second duty ratio of the third color temperature. It is to be understood that the second duty cycle may be preset.
Illustratively, the first duty cycle and the second duty cycle may be equal, and both are 50%.
It should be understood that, besides the above-mentioned manner of determining the length of the first time period and the length of the second time period according to the duty ratio, the length of the first time period and the length of the second time period may also be preset or determined according to the brightness of the light source, which is not limited in this embodiment of the application.
With reference to the first aspect, in certain implementations of the first aspect, after the face image is acquired by the camera, the method further includes: the light source is made to present a first color temperature.
It should be understood that after the camera collects the face image, the above device can perform skin detection on the face image, and in the detection process, the light source does not need to be always in a state of displaying different color temperatures at a target frequency interval, so that the light source can be changed from alternately aliasing to presenting two different color temperatures to fixedly presenting one color temperature, namely the first color temperature, and thus the adverse effect of the interval change of the color temperature on the eyes of a user can be reduced.
With reference to the first aspect, in certain implementations of the first aspect, the first color temperature is T, and the second color temperature is T 1 The third color temperature is T 2 Wherein, is provided with T 2 <T<T 1 (ii) a Causing the light source to assume a first color temperature, comprising: in the ith display period of N continuous display periods, the second color temperature T is set 1 And a first duty cycle of a second color temperature
Figure BDA0002981165880000031
Is updated to
T 1 (i)=T 1 -i*ΔT 1
Figure BDA0002981165880000032
In the ith display periodWithin, the third color temperature T 2 And a second duty cycle of a third color temperature
Figure BDA0002981165880000033
Is updated to
T 2 (i)=T 2 +i*ΔT 2
Figure BDA0002981165880000034
Wherein N is a positive integer, i is taken over {1,2, … N },
Figure BDA0002981165880000035
in a second aspect, an apparatus for skin detection is provided, which is configured to perform the method in any one of the possible implementations of the first aspect. In particular, the apparatus comprises means for performing the method of any one of the possible implementations of the first aspect described above.
In a third aspect, there is provided another apparatus for skin detection, comprising a processor coupled to a memory and configured to execute instructions in the memory to implement the method of any one of the possible implementations of the first aspect. Optionally, the apparatus further comprises a memory. Optionally, the apparatus further comprises a communication interface, the processor being coupled to the communication interface.
In a fourth aspect, a processor is provided, comprising: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal via the input circuit and transmit a signal via the output circuit, such that the processor performs the method of any one of the possible implementations of the first aspect.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver, the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
In a fifth aspect, a processing apparatus is provided that includes a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive signals via the receiver and transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, there are one or more processors and one or more memories.
Alternatively, the memory may be integrated with the processor, or provided separately from the processor.
In a specific implementation process, the memory may be a non-transitory (non-transitory) memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, and the embodiment of the present application does not limit the type of the memory and the arrangement manner of the memory and the processor.
It will be appreciated that the associated data interaction process, e.g., sending the indication information, may be a process of outputting the indication information from the processor, and receiving the capability information may be a process of receiving the input capability information from the processor. In particular, the data output by the processing may be output to a transmitter and the input data received by the processor may be from a receiver. The transmitter and receiver may be collectively referred to as a transceiver, among others.
The processing device in the fifth aspect may be a chip, the processor may be implemented by hardware or software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated with the processor, located external to the processor, or stand-alone.
In a sixth aspect, a cosmetic mirror is provided, which includes a camera, a light source, and a processor configured to perform the method of any one of the possible implementations of the first aspect.
In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code or instructions) that, when executed on a computer, causes the computer to perform the method in any of the possible implementations of the first aspect.
In an eighth aspect, there is provided a computer program product comprising: computer program (also called code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect.
Drawings
FIG. 1 is a schematic view of a cosmetic mirror suitable for use with embodiments of the present application;
FIG. 2 is a schematic flow chart of a method of skin detection provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a color temperature adjustment interface according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another color temperature adjustment interface provided by an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a color temperature display principle of an LED according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram illustrating a color temperature variation of an LED according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram illustrating a color temperature variation of another LED provided in the embodiment of the present application;
FIG. 8 is a schematic diagram of a third color temperature determination process provided by an embodiment of the present application;
FIG. 9 is a schematic view of a cosmetic mirror with two sets of LEDs according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram illustrating another LED color temperature display principle provided by an embodiment of the present application;
FIG. 11 is a schematic diagram illustrating color temperature variation of two groups of LEDs according to an embodiment of the present disclosure;
FIG. 12 is a schematic diagram illustrating a color temperature variation of two sets of LEDs according to an embodiment of the present application;
FIG. 13 is a schematic diagram illustrating a skin test result according to an embodiment of the present application;
FIG. 14 is a schematic diagram of another example of the present application showing the results of skin tests;
FIG. 15 is a schematic block diagram of an apparatus for skin detection provided by an embodiment of the present application;
fig. 16 is a schematic block diagram of another skin detection device provided in the embodiments of the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
At present, the smart skin detection technology is widely applied to Applications (APP) and cosmetic mirrors of terminals (e.g., mobile phone platforms).
For the application of the intelligent skin detection technology to the APP, when a user uses the APP (for example, skin-loving APP) of the mobile phone platform to perform intelligent skin detection, the distance between the user and the mobile phone needs to be controlled and a specific posture is set so as to trigger a camera in the mobile phone to acquire a face image under a fixed color temperature, and the face image is analyzed to obtain a skin detection result.
In the method, the photographing color temperature is fixed, and the mobile phone can accurately analyze skin key detection items such as pores, red areas and the like so as to ensure the precision of intelligent skin detection. However, the method requires the user to specially open the mobile phone APP and set the mobile phone to take a picture, and the user experience is not high.
And the makeup mirror with the intelligent skin detection function adopts a non-sensing skin technology. Because a user generally uses the makeup mirror to make up, check whether makeup is complete or make up, the makeup mirror can collect a face image of the user in the process of looking into the mirror, and analyze the face image to obtain a skin detection result. The process does not need a user to specially place photographing equipment for photographing, so that the complex operation is reduced, and the user experience is improved. Therefore, the application of the intelligent skin detection technology to cosmetic mirrors is described in detail below.
Fig. 1 shows a schematic view of a cosmetic mirror 100. As shown in fig. 1, the cosmetic mirror 100 includes a mirror 101, a frame 102 surrounding the mirror, a camera 103 positioned on the top of the frame, a light source 104 surrounding the mirror, and a bracket 105. The camera 103 is used for acquiring a face image of the user when the user looks into a mirror. The light sources 104 are dispersed on the front surface of the frame 102. Illustratively, the light source 104 may be a plurality of Light Emitting Diodes (LEDs). The LED may be composed of Red Green Blue White (RGBW) four primary LED comprising R, G, B, W four LED elements.
In addition, the cosmetic mirror 100 further includes a control switch (not shown in fig. 1) for controlling the light source 104 to be turned on or off. The control switch may be disposed below the front or the back of the lens frame 102, or the control switch may be disposed on the support 105, which is not limited in the embodiment of the present invention.
The light source 104 shown in fig. 1 can emit light with different color temperatures according to the user's needs, 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 by controlling the switch, and select the color temperature meeting the requirement of the user.
Under the condition that the intelligent skin detection function is started, the cosmetic mirror 100 can acquire a face image under 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 specially set up the photographing device to take the photograph, and is imperceptible to the user, and is therefore also referred to as "sensorless skin".
When the face image is acquired in the non-sensing skin process, the color temperature of the light source can be freely adjusted by the user, and the color temperature of the makeup mirror can be randomly changed before and after makeup and makeup removal of the user. Under different color temperatures, the color difference of color-related skin detection items such as pockmarks, color spots and the like is obvious, and the accuracy of skin detection is difficult to guarantee.
In view of the above, the present application provides a method and apparatus for skin detection, which sets the light frequency according to the color temperature mixing theoryRatio f and photographing color temperature T 1 Calculating another mixed color temperature T from the color temperature T set by the user 2 By setting two color temperatures T for the light source 1 And T 2 And causes the light source to present the two different color temperatures at frequency fspaces. Displaying the photographing color temperature T 1 And shooting by using a camera to obtain a face image, and carrying out skin detection. The color temperature perceived by the user is always the color temperature T set by the user due to the persistence of vision effect of the human eye. Therefore, in the embodiment of the application, the user can adjust the color temperature of the makeup mirror at will without influencing the color temperature of the photographing system, the skin makeup mirror always adopts the photographing color temperature when measuring the skin, the skin detection accuracy when no sensing skin can be improved, more stable and accurate measurement results are obtained, and the user experience is improved.
Alternatively, the light source may include a first light source and a second light source. The light source presents the photographing color temperature T at intervals of frequency f 1 And mixed color temperature T 2 The method can comprise the following steps: the first light source presents a photographing color temperature T with a frequency f and a first duty ratio 1 The second light source presents a mixed color temperature T at a frequency f and a second duty cycle 2 And the sum of the first duty cycle and the second duty cycle is 1. The first light source presents the photographing color temperature T 1 When the second light source is in the off state; rendering a mixed color temperature T at a second light source 2 At this time, the first light source is in an off state. Thus, the cosmetic mirror presents the photographing color temperature T at the target frequency interval 1 And mixed color temperature T 2 And the color temperature sensed by the user according to the persistence effect is the first color temperature, so that the user experience is improved.
Optionally, after the camera obtains the face image, the cosmetic mirror may make the light source present the color temperature T set by the user. It will be appreciated that after the face image has been acquired, it can be analysed without the light source having to render the photographic colour temperature T at frequency intervals f 1 And mixed color temperature T 2 Therefore, the light source with the alternative aliasing can be changed into a fixed light source, the process is not perceived by a user, and the adverse effect of the interval change of the color temperature on the eyes of the user is reduced.
For better understanding of the embodiments of the present application, the persistence of vision effect and color temperature mixing theory will be described.
1. Persistence of vision effect (persistence of vision)
The persistence of vision effect, also called positive afterimage, is a phenomenon in which light produces vision to the retina and remains for a certain period of time after the light ceases to act, and is often used for the filming and showing of movies. The persistence effect is caused by the response speed of the optic nerve, which is about 1/16 seconds, where persistence times are different for different frequencies of light.
2. Planck color temperature curve and color temperature mixing theory
The planck curve may also be called black body radiation, in which the color of light varies with temperature, and the black body shows a gradual change from red, orange red, yellow white, blue white. The color of light emitted by a light source appears the same as the color of light emitted by a black body at a certain temperature, which temperature is referred to as the color temperature of the light source. The higher the temperature of the "black body", the more blue and the less red components of the spectrum. The chromaticity diagram is a plan view of a functional expression of the blackbody locus expressed in chromaticity coordinates in colorimetry. The color change of black body at different temperatures forms an arc curve on the chromaticity diagram, and the curve is called as Planckian curve.
The color temperature mixing theory means that light with two color temperatures can be mixed to obtain light with another new color temperature. It should be understood that white and any other light color may be mixed to lighten the color.
It should be understood that the method for skin detection provided by the embodiment of the present application may be implemented by a device including a camera, a light source, and a skin detection function. For example, the cosmetic mirror according to the embodiment of the present application may be a mirror capable of being placed on a table as shown in fig. 1, a mirror hung on a wall surface, or a small mirror capable of being moved at will, which is not limited in the embodiment of the present application. The skin detection method according to the embodiment of the present application will be described below by taking the cosmetic mirror 100 shown in fig. 1 as an example, and the light source 104 will be referred to as an LED by way of example.
Fig. 2 shows a schematic flow chart of another method 200 for skin detection provided by the embodiment of the present application. As shown in fig. 2, the method 200 may include the following steps:
s201, acquiring a first color temperature of the LED. The first color temperature, i.e. the color temperature T set by the user, is understood to be a factory preset color temperature of the LED in a case that the color temperature T is not set by the user. It should also be understood that both the color temperature set by the user and the factory preset color temperature may be referred to as a user desired color temperature.
Specifically, when the user turns on the LED on the cosmetic mirror 100 through the control switch, the LED may present a factory preset color temperature (also referred to as a default color temperature in the embodiment of the present application), and the user may continue to adjust the color temperature of the LED to select a desired color temperature. If the user does not actively adjust the color temperature of the LED, the first color temperature is a 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.
In the embodiment of the application, the user can adjust the color temperature of the LED in various ways.
Illustratively, the user can manually adjust the color temperature of the LEDs through a color temperature adjusting button, which may be disposed below the front surface or below the back surface of the frame 102, or the color temperature adjusting button may be disposed on the bracket 105, which is not limited in this embodiment. In a possible implementation manner, the color temperature adjusting key may be the same key as the control switch.
Illustratively, the color temperature of the LED can be adjusted by the user through a voice instruction, for example, the user's voice instruction can be "increase the color temperature", or "decrease the color temperature", or "set the color temperature to 3000K", or the like.
Illustratively, the user can manually adjust the color temperature of the LED by touching the mirror, in which case the mirror is built in with a display screen and has a touch screen operation function to display a settable color temperature range and a current color temperature for the user to select.
Fig. 3 shows a schematic diagram of a color temperature adjustment interface, as shown in fig. 3, the color temperature interval is [2000K, 8000K ], which indicates that the user can set the color temperature to any one of values 2000K to 8000K, the user can touch and move the pointer with a hand to adjust the current color temperature, or can directly click the color temperature value with a finger, so that the pointer moves to a position corresponding to the color temperature value clicked by the finger, thereby completing the setting of the first color temperature. Fig. 3 also includes adjustment of brightness, which can be adjusted by a user according to a requirement, where the current brightness is a brightness value corresponding to a black-white boundary position.
Fig. 4 is a schematic diagram of another color temperature adjustment interface, as shown in fig. 4, the color temperature adjustment interface includes 20 color temperature values for user selection, and each adjacent color temperature value differs by 300K. The user can click any one of the color temperature values by hand, thereby completing the setting of the first color temperature.
Optionally, different color temperatures may correspond to different color temperature names, and the makeup mirror may further display the color temperature name corresponding to the current color temperature on the mirror along with the operation of the user. For example, when the user sets the color temperature of the LED to 2000K, "ruddy" is displayed on the cosmetic mirror; when the color temperature of the LED is set to be 5000K by a user, the 'sunlight' is displayed on the cosmetic mirror; when the user set up the colour temperature of LED for 8000K, show "bright moon" on the beautiful mirror of making up.
S202, determining a third color temperature based on the first color temperature and the second color temperature. Wherein the second color temperature is the color temperature required by skin detection, i.e. the above-mentioned photographing color temperature T 1 And the human face image acquired under the color temperature can ensure the detection precision of the skin. The third color temperature is used for synthesizing the first color temperature with the second color temperature, and the third color temperature is the mixed color temperature T 2
It should be understood that the second color temperature may be preset, and the skin detection is performed on the face image acquired at the color temperature, so that the detection accuracy of the skin can be ensured to the greatest extent. Exemplarily, the second color temperature T 1 Can be placed near white light, for example 5500K.
S203, enabling the LED to present a second color temperature and a third color temperature at the target frequency interval.
It should be understood that the objects of the embodiments of the present applicationThe frequency is a frequency that can cause the user to produce the persistence of vision effect, i.e. the above-mentioned illumination frequency f. As mentioned above, the persistence of vision effect is caused by the response speed of the optic nerve, which is about 1/16 seconds, i.e., the target frequency is 16 Hertz (HZ) or higher. Illustratively, the target frequency may be greater than or equal to 30 HZ. The embodiment of the application enables the LED to present the second color temperature T at the target frequency interval 1 And a third color temperature T 2 The user perceives the second color temperature T due to the effect of human persistence of vision 1 And a third color temperature T 2 The mixed color temperature, i.e. the first color temperature T, meets the user's requirements.
The above-mentioned presentation of the second color temperature and the third color temperature at the target frequency interval may also be understood as: in a first time period t 1 The LED is made to present a second color temperature for a second time period t 2 And enabling the LED to present a third color temperature.
In the embodiment of the present application, the duration of a display period corresponding to a target frequency f is 1/f, and is equal to t 1 And t 2 Sum, i.e. t 1 And t 2 Constituting one display period. The embodiment of the application can determine t through the following various possible implementation manners 1 And t 2 The value of (a).
In one possible implementation, t may be determined according to the brightness of the LED 1 And t 2 . For example, the LED with the second color temperature has a brightness L 1 And the brightness of the LED presenting the third color temperature is L 2 Then can be according to formula L 1 *t 1 =L 2 *t 2 Determining t 1 And t 2
In another possible implementation, t 1 And t 2 May be a predefined absolute time duration. Illustratively, the target frequency is 50Hz, and one display period is 0.02 seconds, t can be predefined 1 Is 0.015 seconds, t is predefined 2 The time period of (a) is 0.005 seconds.
In yet another possible implementation, t may be determined according to a duration of one display period and a first duty ratio of a second color temperature 1 Second duty according to the duration of one display period and the third color temperatureSpace ratio determination t 2 . The first duty ratio and the second duty ratio may be preset values, the preset values may be calculated in an off-line state, and the preset method may be implemented through experimental adjustment. Illustratively, the first duty cycle and the second duty cycle are equal, both 50%.
It is to be understood that the sum of the first duty cycle and the second duty cycle is equal to 1. The first duty ratio is the proportion of the time of the LED presenting the second color temperature in the time length of one display period, and the second duty ratio is the proportion of the time of the LED presenting the third color temperature in the time length of one display period. The first duty ratio and the second duty ratio may be flexibly adjusted according to the first color temperature T required by the user, may be preset, or may 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 herein.
Thus, the above-mentioned presenting the second color temperature and the third color temperature at the target frequency interval may also be understood as: presenting a second color temperature T at a target frequency and a first duty cycle 1 And presenting a third color temperature T at the target frequency and the second duty ratio 2 And the second color temperature and the third color temperature are presented in an interlaced mode.
FIG. 5 is a schematic diagram of a LED color temperature display according to an embodiment of the present application, and the second color temperature T is shown in FIG. 5 1 And a third color temperature T 2 And displaying at intervals in a plurality of continuous display periods, wherein the color temperature perceived by a user is the first color temperature T due to the persistence of vision and the color temperature mixing principle.
Illustratively, assuming that the first duty cycle and the second duty cycle are equal, both being 50%, and the target frequency f is 40HZ, and one display period 1/f of the LED is 1/40-0.025 seconds, the LED exhibits the second color temperature within 0-0.0125 seconds of one display period, and the LED exhibits the third color temperature within 0.0125-0.025 seconds of the display period.
S204, when the color temperature of the LED is a second color temperature T 1 And then, acquiring a human face image through a camera.
For example, the cosmetic mirror 100 can control the camera to display the second color temperature T on the LED 1 The face image is acquired in time to ensure the subsequent skin detection precision。
Optionally, the face image further meets basic skin detection requirements, for example, the face is not blocked, the front face is right, the face is centered in the image, and the like, so that the beauty glasses can obtain more accurate face information, and subsequent skin detection is facilitated. Illustratively, the current face image may be acquired when the camera detects that the face is unobstructed, the front face, the face is centered in the image, and the LED exhibits a second color temperature.
And S205, carrying out skin detection on the collected face image to obtain a skin detection result.
For example, the cosmetic mirror may perform skin detection on the face image by using a skin detection model to obtain a skin detection result.
The method for detecting skin of the embodiment of the application sets the target frequency f and the second color temperature T according to the color temperature mixing theory 1 Calculating a third color temperature T from the first color temperature T set by the user 2 By setting two color temperatures T for the LEDs 1 And T 2 And causes the LEDs to exhibit these two different color temperatures at frequency f intervals. Displaying a second color temperature T at the LED 1 And the camera is used for shooting to obtain a face image for skin detection. The color temperature perceived by the user is always the first color temperature T set by the user due to the persistence of vision effect of the human eye. Therefore, in the embodiment of the application, the user can adjust the color temperature of the makeup mirror at will without influencing the color temperature of the photographing system, the photographing color temperature is always adopted during skin measurement, the skin detection accuracy is improved when no skin is sensed, more stable and accurate measurement results are obtained, and the user experience is improved.
Optionally, the method further includes: s206, the LED presents a first color temperature.
It should be understood that after the face image is obtained, the cosmetic mirror can analyze and process the face image without the LED presenting the second color temperature and the third color temperature at the target frequency interval, so that the cosmetic mirror can change the LED presenting the first color temperature, that is, the light source with the alternate aliasing to the fixed light source, and the process is not perceived by the user. In this way, the adverse effect of the interval change of the color temperature on the eyes of the user can be reduced.
The process of presenting the first color temperature can be implemented by the following two possible implementation manners, which are not limited in the embodiment of the present application.
In a first possible implementation, the LED may be switched directly from the second color temperature or the third color temperature to the first color temperature. FIG. 6 shows a schematic diagram of the change of the color temperature of an LED, in FIG. 6 the color temperature of the LED is at a second color temperature T in the manner of S203 described above 1 And a third color temperature T 2 The interval between the LED and the face image is changed, and after the face image is collected, the LED directly presents the first color temperature T.
In a second possible implementation, the LEDs may be faded from the second color temperature or the third color temperature to the first color temperature. Fig. 7 shows another schematic diagram of the change of the color temperature of an LED. In FIG. 7, the color temperature of the LED is at a second color temperature T as described above in S203 1 And a third color temperature T 2 The interval is changed, and after the face image is acquired, the LED can change the second color temperature from T 1 Modified as T 1 (1)=T 1 +ΔT 1 ,ΔT 1 For the changing step length of the second color temperature, the duty ratio is modified
Figure BDA0002981165880000091
From the third color temperature T 2 Is modified to T 2 (1)=T 2 -ΔT 2 ,ΔT 2 For the changing step length of the third color temperature, the duty ratio is modified
Figure BDA0002981165880000092
Displayed at second color temperature and third color temperature intervals. In the next display period, the LED can further change the second color temperature from T 1 (1) Modified as T 1 (2)=T 1 +2*ΔT 1 Duty ratio is modified
Figure BDA0002981165880000093
The third color temperature is changed from T 2 (1) Modified as T 2 (2)=T 2 -2*ΔT 2 Duty ratio is modified
Figure BDA0002981165880000094
In the next display period, the color temperature of the LED is modified to the first color temperature T.
Specifically, the principle of the second possible implementation manner is as follows:
the above-described process of fading the color temperature values can be divided into a finite number of steps according to the planck curve, provided that this process includes N steps, N being an integer greater than 0. The color temperature of the LED is changed from the second color temperature T 1 Gradually changing to the first color temperature T, the step size of the change of the color temperature may be as follows:
Figure BDA0002981165880000095
the color temperature of the LED is controlled from the third color temperature T 2 Gradually changing to the first color temperature T, the step size of the change of the color temperature may be as follows:
Figure BDA0002981165880000096
suppose T 2 <T<T 1 Every time the color temperature changes, the ith (0)<i is less than or equal to N), the color temperature T of the second color temperature change 1 (i) And the duty ratio of the time of the color temperature presentation
Figure BDA0002981165880000097
Can be respectively as follows:
T 1 (i)=T 1 -i*ΔT 1
Figure BDA0002981165880000098
wherein the content of the first and second substances,
Figure BDA0002981165880000099
is the second color temperature T 1 A duty cycle within a period;
ith (0)<i is less than or equal to N), the color temperature T of the third color temperature change 2 (i) And the ratio of the time of color temperature presentation in the period
Figure BDA00029811658800000910
Can be respectively as follows:
T 2 (i)=T 2 +i*ΔT 2
Figure BDA00029811658800000911
wherein, the first and the second end of the pipe are connected with each other,
Figure BDA00029811658800000912
is the third color temperature T 2 Duty ratio in one cycle.
It should be understood that S206 may be executed after S204, after S205, or in parallel with S205, which is not limited in this embodiment of the application.
The determination process of the third color temperature in the embodiment of the present application is described in detail below with reference to fig. 8. In a possible implementation manner of the foregoing S202, the third color temperature is determined according to a planckian color temperature curve and a color temperature mixing theory, and specifically includes the following steps:
1) determining a second color temperature T according to a table lookup interpolation method of black body color temperature-CIE 1960 uniform space (UCS) chromaticity coordinates 1 Has a chromaticity coordinate of
Figure BDA00029811658800000913
And chromaticity coordinate (u) of the first color temperature T T ,v T )。
2) As shown in fig. 8, two points close to each other are selected around the color temperature value T on the planck curve of blackbody radiation according to the color temperature-chromaticity coordinate viewing table l And T r Having chromaticity coordinates of
Figure BDA00029811658800000914
And
Figure BDA00029811658800000915
3) based on these two point approximationsCalculating a passing point (u) T ,v T ) And the slope of the curve perpendicular to the planckian curve of the CIE1960 chromaticity diagram, the equation for this perpendicular line can be expressed as:
Figure BDA0002981165880000101
4) traversing on the Planck curve shown in FIG. 8 to find the third color temperature value T 2 Chromaticity coordinates of
Figure BDA0002981165880000102
Get the passing point
Figure BDA0002981165880000103
And point
Figure BDA0002981165880000104
The equation of the straight line of (1) is:
Figure BDA0002981165880000105
5) the coordinate of the intersection point is (u) obtained from the equation of the perpendicular line and the equation of the straight line c ,v c ) And u is and u c And v c Are each u T ,v T ,
Figure BDA0002981165880000106
I.e.:
Figure BDA0002981165880000107
6) converting the formula obtained in the last step from the chromaticity coordinates into a CIE-XYZ formula as follows:
Figure BDA0002981165880000108
7) is provided with
Figure BDA0002981165880000109
Then obtain
Figure BDA00029811658800001010
8) Passing point
Figure BDA00029811658800001011
And point
Figure BDA00029811658800001012
The intersection point position of the straight line and the vertical line meets the proportion relation of CIE-XYZ coordinates as follows:
Figure BDA00029811658800001013
and is provided with
Figure BDA00029811658800001014
This gives:
Figure BDA00029811658800001015
Figure BDA00029811658800001016
9) coloring degree coordinate points of the Planck curve
Figure BDA00029811658800001017
To convert to:
Figure BDA00029811658800001018
the CIE-XYZ coordinate of the converted third color temperature value is calculated as
Figure BDA00029811658800001019
In addition, in order to make the third chromaticity value on the planckian curve, the chromaticity coordinate point of the third chromaticity value needs to satisfy
Figure BDA0002981165880000111
Where δ is the threshold.
The LED of this application embodiment can be a set of LED, also can be two sets of LED. In one possible implementation, the LEDs in the beauty mirror 100 shown in fig. 1 form a group of LEDs, which may be composed of a plurality of LEDs of R, G, B, W four primary colors connected in series as shown in fig. 1.
In another possible implementation, the LEDs in the beauty mirror 100 shown in fig. 1 include two sets of LEDs, each of which may be composed of a plurality of LEDs of R, G, B, W four primary colors connected in series. The two groups of LEDs can be connected in parallel and independently and mixedly displayed. The two groups of LEDs are controlled by a crystal oscillator. Fig. 9 shows a schematic view of a cosmetic mirror provided with two sets of LEDs. As shown in fig. 9, the light source 104 may include a plurality R, G, B, W of four primary color LEDs 1041 and a plurality R, G, B, W of four primary color LEDs 1042 (shown as a fill pattern). 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. The LED 1 and the LED 2 can be connected in parallel, and the LED 1 and the LED 2 are arranged at intervals. The LED 1 and the LED 2 are both connected to the same crystal oscillator clock, and the crystal oscillator clock can uniformly control the off-on frequency of the LED 1 and the LED 2.
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. In addition, fig. 9 is only an example of the arrangement of the LEDs 1 and the LEDs 2, and the LEDs 1 and the LEDs 2 may be arranged in other arrangements, such as the inner ring LED 1 and the outer ring LED 2, or the inner ring LED 2 and the outer ring LED 1, which is not limited in the embodiment of the present application.
In the case of a cosmetic mirror comprising two sets of LEDs, FIG. 10 shows a schematic diagram of another LED color temperature display according to the embodiment of the present application, and as shown in FIG. 10, LED 1 presents a second color temperature T 1 LED 2 exhibits a third color temperature T 2 The makeup mirror can control the LED 1 and the LED 2 to be continuously multiple through the crystal oscillator clockThe interval is opened in one display period, thereby the second color temperature T is displayed at intervals 1 And a third color temperature T 2 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.
Optionally, the LED 1 may be connected to a camera in the form of a hardware trigger signal, and when the LED 1 is turned on, the camera may be triggered to acquire a face image.
In this case, the above S206 may specifically be that the LED 1 and the LED 2 are made to present the first color temperature, and may include two possible implementation manners.
In a first possible implementation, LED 1 may be switched directly from the second color temperature to the first color temperature, LED 1 is set to a normally on state, and LED 2 is turned off; alternatively, the LED 2 is directly switched from the third color temperature to the first color temperature, the LED 2 is set to the normally on state, and the LED 1 is turned off. FIG. 11 is a schematic diagram showing the color temperature variation of two sets of LEDs. As shown in fig. 11, LED 1 and LED 2 are turned on at intervals in a plurality of consecutive periods in the manner of S203 described above, after the face image is captured, LED 1 is directly turned off, the color temperature of LED 2 directly appears as the first color temperature T, and LED 2 is in a normally on state. Thus, the cosmetic mirror presents the user with the first color temperature T.
In a second possible implementation, LED 1 may gradually change from the second color temperature to the first color temperature and be normally on, LED 2 may gradually change from the third color temperature to be off, or LED 2 may gradually change from the third color temperature to the first color temperature and be normally on, and LED 1 may gradually change from the second color temperature to be off. FIG. 12 is another schematic diagram of the color temperature variation of two sets of LEDs. As shown in fig. 12, LED 1 and LED 2 are turned on at intervals in a plurality of consecutive periods in the manner of S203, and after the face image is captured, LED 1 may change the second color temperature from T 1 Modified as T 1 (1)=T 1 +ΔT 1 ,ΔT 1 For the changing step length of the second color temperature, the duty ratio is modified
Figure BDA0002981165880000112
The LED 2 can change the temperature of the third color from T 2 Modified as T 2 (1)=T 2 -ΔT 2 ,ΔT 2 Is as followsThe change step length and the duty ratio of the three color temperatures are modified
Figure BDA0002981165880000121
By T 1 (1) And T th 2 (1) And displaying the interval. In the next display period, LED 1 can reset the second color temperature from T 1 (1) Modified as T 1 (2)=T 1 +2*ΔT 1 Duty ratio is modified
Figure BDA0002981165880000122
The LED 2 can control the third color temperature to be T 2 (1) Modified as T 2 (2)=T 2 -2*ΔT 2 Duty cycle is modified to
Figure BDA0002981165880000123
In the next display period, the color temperature of the LED 1 is modified to the first color temperature T, and the LED 2 is turned off.
It should be understood that the principle of determining the color temperature and the duty ratio of the two groups of LEDs during the gradual change process is similar to the principle of determining the color temperature and the duty ratio of the one group of LEDs during the gradual change process, and the description thereof is omitted.
The embodiment of the application not only reduces the adverse effect of the interval change of the color temperature on the eyes of a user, but also extinguishes one group of LEDs, thereby being beneficial to saving energy.
Optionally, after S205, the cosmetic mirror may further display the skin detection result to the user.
In a first possible implementation, cosmetic mirror 100 may display the skin detection result on mirror 101. Specifically, the cosmetic mirror 100 may have a display screen embedded therein, as shown in fig. 13, after the cosmetic mirror completes the skin detection, the cosmetic mirror may display the skin detection result on the mirror 101: the score of the acne is 89, the score of the color spot is 74, the score of the acne mark is 84, the score of the blackhead is 82, the score of the fine line is 88 and the score of the pouch is 94, so that the user can check the acne marks.
In a second possible implementation, the cosmetic mirror 100 and a terminal device (e.g., a mobile phone, a computer, a tablet, etc.) having a display screen are connected through a wireless communication technology, which may be, for example, bluetooth, WiFi, etc. After the cosmetic mirror finishes skin detection, the skin detection result can be sent to the terminal equipment through the wireless communication technology, and the terminal equipment receives and displays the skin detection result on the display screen for a user to check. Fig. 14 is a schematic diagram of a skin detection result displayed on a mobile phone interface, where a user may operate a mobile phone, bind a cosmetic mirror through an APP in the mobile phone, obtain a skin detection result of the cosmetic mirror by the APP, and display the result on the mobile phone interface, as shown in fig. 14, where the skin detection result includes: whelk 89, mottle 74, whelk mark 84, blackhead 82, fine lines 88 and pouch 94.
It should be understood that the skin detection method in the embodiment of the present application may be authorized to be turned on in various ways, or may be turned on by default and turned off by the user, which is not limited in the embodiment of the present application. For example, the user may turn on or off the skin detection method according to the embodiment of the present application in a voice control manner, for example, the voice instruction is "turn on the skin measurement function", and when the cosmetic mirror detects the instruction, the flow of the method 200 may be executed. For example, the user may also turn on or off the skin detection method according to the embodiment of the present invention in a gesture control manner, for example, the gesture command is an "OK" gesture, and when the cosmetic mirror detects the command, the process of the method 200 may be executed. Exemplarily, the user can also bind the cosmetic mirror to the mobile phone APP, and the skin detection method of the embodiment of the application can be turned on or turned off by setting through the APP.
The method for skin detection according to the embodiment of the present application is described in detail above with reference to fig. 2 to 14, and the apparatus for skin detection according to the embodiment of the present application is described in detail below with reference to fig. 15 to 16.
Fig. 15 shows an apparatus 1500 for skin detection provided by an embodiment of the present application, where the apparatus 1500 includes: an acquisition unit 1510 and a processing unit 1520.
The obtaining unit 1510 is configured to: and acquiring a first color temperature, wherein the first color temperature is the color temperature required by the user.
The processing unit 1520 is to: enabling 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 a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature; when the light source presents a second color temperature, a face image is collected through the camera; and carrying out skin detection on the face image to obtain a skin detection result.
Optionally, the processing unit 1520 is specifically configured to: causing the light source to exhibit a second color temperature for a first period of time; causing the light source to present a third color temperature for a second time period; wherein the first time period and the second time period are two consecutive time periods and constitute one display cycle, and the length of the display cycle is determined based on the target frequency.
Optionally, the light source comprises a first light source and a second light source; the processing unit 1520 is further to: in a first time period, enabling the first light source to present a second color temperature and enabling the second light source to be in a closed state; and in a second time period, the second light source is enabled to present a third color temperature, and the first light source is enabled to be in a closed state.
Optionally, 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.
Optionally, the processing unit 1520 is specifically configured to: the light source is made to present a first color temperature.
Optionally, the first color temperature is T, and the second color temperature is T 1 The third color temperature is T 2 Wherein, is provided with T 2 <T<T 1 (ii) a The processing unit 1520 is further configured to: in the ith display period of N continuous display periods, the second color temperature T is set 1 And a first duty cycle of a second color temperature
Figure BDA0002981165880000131
Is updated to
T 1 (i)=T 1 -i*ΔT 1
Figure BDA0002981165880000132
In the ith display period, the third color temperature T 2 And a second duty cycle of a third color temperature
Figure BDA0002981165880000133
Is updated to
T 2 (i)=T 2 +i*ΔT 2
Figure BDA0002981165880000134
Wherein N is a positive integer, i is taken over {1,2, … N },
Figure BDA0002981165880000135
it should be appreciated that the apparatus 1500 herein is embodied in the form of functional modules. The term "unit" herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it can be understood by those skilled in the art that the apparatus 1500 may be specifically configured in the cosmetic mirror of the foregoing embodiment, so that the cosmetic mirror implements each process and/or step in the foregoing method embodiment, and details are not described herein again to avoid repetition.
The device 1500 has the function of realizing the corresponding steps executed by the cosmetic mirror in the method; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the apparatus 1500 in fig. 15 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 16 shows another skin detection apparatus 1600 provided in the embodiment of the present application, and the skin detection apparatus 1600 may include: a processor 1610, a camera 1620, and a light source 1630. The processor 1610 is configured to: acquiring a first color temperature, wherein the first color temperature is the color temperature required by a user; enabling 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 a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature; when the light source presents a second color temperature, a face image is collected through the camera; and carrying out skin detection on the face image to obtain a skin detection result.
Optionally, the processor 1610 is specifically configured to: causing the light source to exhibit a second color temperature for a first period of time; causing the light source to present a third color temperature for a second time period; wherein the first time period and the second time period are two consecutive time periods and constitute one display cycle, and the length of the display cycle is determined based on the target frequency.
Optionally, light source 1630 includes a first light source and a second light source; processor 1610 is further configured to: in a first time period, enabling the first light source to present a second color temperature and enabling the second light source to be in a closed state; and in a second time period, the second light source is enabled to present a third color temperature, and the first light source is enabled to be in an off state.
Optionally, 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.
Optionally, the processor 1610 is specifically configured to: the light source is made to present a first color temperature.
Optionally, the first color temperature is T, and the second color temperature is T 1 The third color temperature is T 2 Wherein, T 2 <T<T 1 (ii) a Processor 1610 is further configured to: in the ith display period of N continuous display periods, the second color temperature T is set 1 And a first duty cycle of a second color temperature
Figure BDA0002981165880000141
Is updated to
T 1 (i)=T 1 -i*ΔT 1
Figure BDA0002981165880000142
In the ith display period, the third color temperature T 2 And a second duty cycle of a third color temperature
Figure BDA0002981165880000143
Is updated to
T 2 (i)=T 2 +i*ΔT 2
Figure BDA0002981165880000144
Wherein N is a positive integer, i is taken over {1,2, … N },
Figure BDA0002981165880000145
it should be understood that the apparatus 1600 may be embodied as the cosmetic mirror in the above embodiment, or the functions of the cosmetic mirror in the above embodiment may be integrated into the apparatus 1600, and the apparatus 1600 may be configured to perform various steps and/or processes corresponding to the cosmetic mirror in the above method embodiment.
The application also provides a processing device which is arranged in the cosmetic 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 for inputting and/or outputting information. The information includes at least one of instructions and data. The processor is used for executing a computer program to enable the cosmetic mirror to execute the method in any method embodiment.
The embodiment of the application also provides another processing device which is arranged in the cosmetic mirror. The processing device may include a processor and a memory. The memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory so as to enable the cosmetic mirror to execute the method in any method embodiment.
It should be understood that, in the embodiments of the present application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
The present application also provides a computer-readable storage medium for storing a computer program for implementing the method corresponding to the cosmetic mirror in the above embodiments.
The application also provides a chip system, and the chip system is used for supporting the beauty makeup mirror to realize the functions shown in the embodiment of the application.
The present application also provides a computer program product comprising a computer program (also referred to as code, or instructions) which, when run on a computer, can perform the method corresponding to the cosmetic mirror as shown in the above embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A method for skin detection, which is applied to a device comprising a camera and a light source, the method comprising:
acquiring a first color temperature, wherein the first color temperature is 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; wherein the second color temperature is a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature;
when the light source presents the second color temperature, a human face image is collected through the camera;
and carrying out skin detection on the face image to obtain a skin detection result.
2. The method of claim 1, wherein said causing the light source to present a second color temperature and a third color temperature at a target frequency interval comprises:
causing the light source to exhibit the second color temperature for a first period of time;
causing the light source to exhibit the third color temperature for a second period of time;
wherein the first time period and the second time period are two consecutive time periods and constitute one display cycle, and a length of the display cycle is determined based on the target frequency.
3. The method of claim 2, wherein the light source comprises a first light source and a second light source;
the causing the light source to exhibit the second color temperature for a first period of time includes:
in the first time period, enabling the first light source to present the second color temperature, and enabling the second light source to be in an off state;
the causing the light source to exhibit the third color temperature for a second time period includes:
and in the second time period, enabling the second light source to present the third color temperature, and enabling the first light source to be in an off state.
4. The method of claim 2 or 3, wherein 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 of any one of claims 1 to 4, wherein after said acquiring a facial image by said camera, said method further comprises:
causing the light source to exhibit the first color temperature.
6. The method of claim 5, wherein the first color temperature is T and the second color temperature is T 1 The third color temperature is T 2 Wherein, is provided with T 2 <T<T 1
The causing the light source to present the first color temperature includes:
in the ith display period of N continuous display periods, the second color temperature T is set 1 And a first duty cycle of the second color temperature
Figure FDA0002981165870000014
Is updated to
T 1 (i)=T 1 -i*ΔT 1
Figure FDA0002981165870000011
In the ith display period, the third color temperature T 2 And a second duty cycle of the third color temperature
Figure FDA0002981165870000012
Is updated to
T 2 (i)=T 2 +i*ΔT 2
Figure FDA0002981165870000013
Wherein N is a positive integer, i is taken over {1,2, … N },
Figure FDA0002981165870000021
7. an apparatus for skin detection, comprising:
the device comprises a processor, a camera and a light source;
the processor is used for obtaining a first color temperature, and the first color temperature is 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; wherein the second color temperature is a color temperature required by skin detection, and the third color temperature is used for synthesizing the first color temperature with the second color temperature; when the light source presents the second color temperature, a face image is collected through the camera; and carrying out skin detection on the face image to obtain a skin detection result.
8. The apparatus of claim 7, wherein the processor is specifically configured to:
causing the light source to exhibit the second color temperature for a first period of time;
causing the light source to present the third color temperature for a second period of time;
wherein the first time period and the second time period are two consecutive time periods and constitute one display cycle, and a length of the display cycle is determined based on the target frequency.
9. The apparatus of claim 8, wherein the light source comprises a first light source and a second light source;
the processor is further configured to:
in the first time period, enabling the first light source to present the second color temperature, and enabling the second light source to be in an off state;
and in the second time period, enabling the second light source to present the third color temperature and enabling the first light source to be in an off state.
10. The apparatus of claim 8 or 9, wherein a length of the first time period is determined based on the display period and a first duty cycle of the second color temperature, and a 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 apparatus according to any of claims 7 to 10, wherein the processor is specifically configured to:
causing the light source to exhibit the first color temperature.
12. The apparatus of claim 11, wherein the first color temperature is T and the second color temperature is T 1 The third color temperature is T 2 Wherein, is provided with T 2 <T<T 1
The processor is further configured to:
in connection withIn the ith display period of the N subsequent display periods, the second color temperature T is adjusted 1 And a first duty cycle of the second color temperature
Figure FDA0002981165870000022
Is updated to
T 1 (i)=T 1 -i*ΔT 1
Figure FDA0002981165870000023
In the ith display period, the third color temperature T 2 And a second duty cycle of the third color temperature
Figure FDA0002981165870000024
Is updated to
T 2 (i)=T 2 +i*ΔT 2
Figure FDA0002981165870000025
Wherein N is a positive integer, i is taken over {1,2, … N },
Figure FDA0002981165870000026
13. an apparatus for skin detection, comprising: a processor coupled with a memory for storing a computer program that, when invoked by the processor, causes the apparatus to perform the method of any of claims 1 to 6.
14. A cosmetic mirror, comprising: a camera, a light source, and a processor for performing the method of any of claims 1-6.
15. A computer-readable storage medium for storing a computer program comprising instructions for implementing the method of any one of claims 1 to 6.
16. A chip system, comprising: a processor for calling and running a computer program from a memory so that a device on which the system-on-chip is installed performs the method of any one of claims 1 to 6.
17. A computer program product comprising computer program code which, when run on a computer, causes the computer to carry out the method according to any one of claims 1 to 6.
CN202110304929.3A 2021-03-17 2021-03-17 Method and apparatus for skin detection Pending CN115116104A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110304929.3A CN115116104A (en) 2021-03-17 2021-03-17 Method and apparatus for skin detection
PCT/CN2022/080688 WO2022194098A1 (en) 2021-03-17 2022-03-14 Method and apparatus for skin detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110304929.3A CN115116104A (en) 2021-03-17 2021-03-17 Method and apparatus for skin detection

Publications (1)

Publication Number Publication Date
CN115116104A true CN115116104A (en) 2022-09-27

Family

ID=83321652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110304929.3A Pending CN115116104A (en) 2021-03-17 2021-03-17 Method and apparatus for skin detection

Country Status (2)

Country Link
CN (1) CN115116104A (en)
WO (1) WO2022194098A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108095698A (en) * 2018-01-29 2018-06-01 杭州美界科技有限公司 A kind of Multi-functional skin detection device
CN108143078A (en) * 2018-01-29 2018-06-12 杭州美界科技有限公司 A kind of vanity mirror with Self-timer
JP7204456B2 (en) * 2018-12-04 2023-01-16 キヤノン株式会社 Strobe device and its control method and program
CN110798949A (en) * 2019-09-24 2020-02-14 广东乐华家居有限责任公司 Cosmetic mirror illumination control method and system, terminal device and cosmetic mirror

Also Published As

Publication number Publication date
WO2022194098A1 (en) 2022-09-22

Similar Documents

Publication Publication Date Title
US11425802B2 (en) Lighting system and method
EP3637763B1 (en) Colour detection method and terminal
US10617301B2 (en) Information processing device and information processing method
JP2017216732A (en) Hair consultation tool arrangement and method
CN106538064B (en) Lighting system
JP6318251B2 (en) Flash lighting with optimized spectral power distribution
EP3467763A1 (en) Information processing device, information processing method, and recording medium
KR20080029773A (en) Method and device of obtaining a color temperature point
CN107533765A (en) Track the device of optical object, method and system
US10757337B2 (en) Information processing apparatus and information processing method to control exposure for imaging the eye
EP3218897B1 (en) Display brightness control
CN107280675B (en) Skin color detection method and device and depilation equipment
CN107926098B (en) Controller for a lighting arrangement
JP2015173891A (en) Measuring apparatus, image display apparatus, and control method therefor
CN109561291A (en) Color temperature compensating method, device, storage medium and mobile terminal
CN115116104A (en) Method and apparatus for skin detection
CN117238236A (en) Display control method, system, medium and equipment based on lamp strip
US20210100336A1 (en) Color reproduction services
CN204166488U (en) Projected keyboard
JP6403002B2 (en) Projector system and projector system control method
EP4220074A1 (en) Determining a parameter map for a region of a subject&#39;s body
KR101648049B1 (en) Dressing table and controlling method thereof
US11089225B2 (en) Optical measuring device, image generating method, and image generating program
JP2014099359A (en) Illumination system
US20230260228A1 (en) Adaptive mixed reality

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination