LED bathroom mirror and mirror cabinet with user emotion adaptation function
By integrating the face detection and processing module in the LED bathroom mirror, adjusting the lighting in real time to adapt to the user's emotions, and optimizing the system based on user feedback, the problem of the inability of smart mirrors to adapt to the user's emotions in the existing technology is solved, and personalized and emotional management is achieved. Effective user experience improvement.
Patent Information
- Application Number
- CN202410333822.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-03-22
AI Technical Summary
Existing bathroom mirror lamps lack intelligent adjustment functions, cannot adapt to users' emotional changes, and cannot meet the growing needs for emotional management.
Design an LED bathroom mirror that integrates the face detection module and processing module. By acquiring and analyzing the user's facial image, calculating the emotional index and adjusting the color and brightness of the LED light bar, it continuously optimizes the weight coefficient based on user feedback to achieve dynamic light effect adjustment. .
The LED light strip realizes the function of adapting to the user's emotional changes in real time, providing a personalized user experience, subconsciously stimulating or soothing emotions, and further improving the emotion management effect through music and aromatherapy modules.
Smart Images

Figure CN118215182B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of intelligent bathroom mirrors, and in particular to an LED bathroom mirror and a mirror cabinet with a user emotion adaptation function. Background Art
[0002] Bathroom mirrors with lights are widely used in bathrooms or dressing areas. The lamps provided on existing bathroom mirrors are used to illuminate users, provide lighting, and provide atmosphere lighting. However, these bathroom mirror lamps generally have no other intelligent adjustment functions except lighting.
[0003] However, few smart mirrors in the prior art involve using smart mirrors to adapt to the user's emotions. Therefore, it is necessary to propose an LED light mirror that can take care of the user's emotions to solve the growing demand for emotion management. Summary of the invention
[0004] In order to overcome the shortcomings and deficiencies in the prior art, the purpose of the present invention is to provide an LED bathroom mirror and mirror cabinet with user emotion adaptation function, which automatically recognizes the user's emotions and illuminates light with a suitable atmosphere, and adaptively adjusts its own lighting index to meet the growing demand for emotion management.
[0005] The present invention is achieved through the following technical solutions:
[0006] In a first aspect, the present invention provides an LED mirror cabinet, comprising:
[0007] Lamp mirror body;
[0008] The face detection module is used to obtain the current face image of the user and obtain the key positioning points of the face of the current user;
[0009] LED light strips, used to display different colors and brightness;
[0010] and a processing module for processing the facial image collected by the facial detection module, determining the current emotional state of the user, and quantifying the facial image to adjust the color tone of the LED light bar;
[0011] In a second aspect, the mirror cabinet of the present invention further provides the following steps:
[0012] S100. The facial detection module obtains the facial image of the face, obtains the key point changes of the facial expression per unit time, and calculates the corresponding weight coefficient w 旧 Calculate the sentiment index E;
[0013] S200. Calculate the target light effect state L by using the target light formula to calculate the emotion index E 目标 , and through the target light effect state L 目标 Control the LED light bar to display gradually;
[0014] S300. Calculate the user feedback index K;
[0015] S400. Calculate the new weight coefficient w 新 , and the weight coefficient w 新 The value of replaces the weight coefficient w in step S100 旧 and repeatedly executes steps S100 to S400.
[0016] In combination with the second aspect, further, in step S100, the calculation formula of the emotion index E is:
[0017] E=w1·f1+w2·f2+…+w n ·f n
[0018] Among them, w n is the nth facial expression, f n is the weight coefficient corresponding to the nth facial expression.
[0019] Combined with the second aspect, further, f n The calculation formula is:
[0020]
[0021] Among them, x n ,y n is the coordinate of the nth key point of the current expression, x n0 ,y n0 are the coordinates of the nth key point of the base expression.
[0022] In combination with the second aspect, further, in step S200, L 目标 The calculation formula is:
[0023] L 目标 (E)=(C(E),I(E))
[0024] Among them, L 目标 is the target light state calculated based on the user emotion index E, C(E) is the color function, and I(E) is the brightness function;
[0025] The calculation formula for the LED light bar to display the gradient is:
[0026] L 新 (t) = l 旧 +(L 目标 -L 旧 )·(1-e -βt )
[0027] Among them, L 新(t) is the LED light state at time t, L 旧 is the initial LED light state, β is a positive constant, and t is the time from the start of the gradient to the present.
[0028] Combined with the second aspect, further, the calculation formula of the color function is:
[0029]
[0030] The calculation formula of the brightness function is:
[0031]
[0032] Among them, E max is the maximum possible value of the sentiment index, I max It is the maximum brightness value of the LED light strip.
[0033] In combination with the second aspect, further, in step S300, the calculation formula of the user feedback index K is:
[0034] K=E+k·U
[0035] Among them, k is the adjustment coefficient and U is the user satisfaction score.
[0036] Combined with the second aspect, further, the calculation formula for user satisfaction score is:
[0037] U=a·F d +b·F f +c·F t
[0038] Among them, F d is the satisfaction score entered by the user, F f is a function of the user's usage frequency, F t is a function of the user’s residence time, and a, b, c are weight coefficients.
[0039] Combined with the second aspect, further, F f The calculation formula is:
[0040]
[0041] Where N is the number of times a user uses the mirror cabinet within a certain period of time T;
[0042] F t The calculation formula is:
[0043]
[0044] Among them, m is the total number of times the user uses the mirror cabinet, t i It is the time a user stays in the mirror cabinet each time they use it.
[0045] In combination with the second aspect, further, in step S400, the weight coefficient e 新 The calculation formula is:
[0046] w 新 =w 旧 +α·U·f i
[0047] Among them, f i It is the normalized value of the change of the i-th facial key point in the current emotion recognition process, and α is a positive number.
[0048] Beneficial effects of the present invention:
[0049] The LED bathroom mirror and mirror cabinet with user emotion adaptation function of the present invention are based on a facial detection module, an LED light bar and a processing module. By capturing a facial image of a human face, the current emotion is judged according to the recognized facial expression, and the LED light bar emits corresponding light to adapt to the current user emotion, which can subconsciously stimulate or soothe emotions. In addition, the present invention will also change the adjustment strategy of the LED light group in combination with user feedback, so that the present invention can better adapt to the personalized needs of users and solve the growing demand for emotion management. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.
[0051] Figure 1 It is the emotion adaptation flow chart of the present invention. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.
[0053] Bathroom mirrors with lights are widely used in bathrooms or dressing areas. The lamps provided on existing bathroom mirrors are used to illuminate users, provide lighting, and provide atmosphere lighting. However, these bathroom mirror lamps generally have no other intelligent adjustment functions except lighting.
[0054] However, few smart mirrors in the prior art involve using smart mirrors to adapt to the user's emotions. Therefore, it is necessary to propose an LED light mirror that can take care of the user's emotions to solve the growing demand for emotion management.
[0055] Example 1
[0056] In order to solve the above problems, this embodiment discloses an LED mirror cabinet, the structure of which includes:
[0057] Lamp mirror body;
[0058] The face detection module is used to obtain the current face image of the user and obtain the key positioning points of the face of the current user;
[0059] LED light strips, used to display different colors and brightness;
[0060] and a processing module for processing the facial image collected by the facial detection module, determining the current emotional state of the user, and quantifying the facial image to adjust the color tone of the LED light bar.
[0061] In this embodiment, the processing module uses facial recognition technology combined with machine learning to analyze the acquired facial image, thereby inferring the user's emotional state. It should be noted that the structure and principle of the facial detection module and the processing module in this embodiment are all prior art and will not be repeated here.
[0062] Furthermore, this embodiment also provides an emotion adaptation method, which includes the following steps:
[0063] S100. The facial detection module obtains the facial image of the face, obtains the key point changes of the facial expression per unit time, and calculates the corresponding weight coefficient w 旧 Calculate the sentiment index E;
[0064] S200. Calculate the target light effect state L by using the target light formula to calculate the emotion index E 目标 , and through the target light effect state L 目标 Control the LED light bar to display gradually;
[0065] S300. Calculate the user feedback index K;
[0066] S400. Calculate the new weight coefficient w 新 , and the weight coefficient w 新 The value of replaces the weight coefficient w in step S100 旧 and repeatedly executes steps S100 to S400.
[0067] Through this cycle, the LED mirror cabinet can adapt to the user's emotional changes in real time and provide a more personalized user experience. This dynamic update mechanism ensures that the system can adjust according to the user's real-time emotions and feedback.
[0068] Furthermore, in step S100, the calculation formula of the emotion index E is:
[0069] E=w1·f1+w2·f2+…+w n ·f n
[0070] Among them, w n is the nth facial expression, f n is the weight coefficient corresponding to the nth facial expression.
[0071] Furthermore, f n The calculation formula is:
[0072]
[0073] Among them, x n ,y n is the coordinate of the nth key point of the current expression, x n0 ,y n0 are the coordinates of the nth key point of the base expression.
[0074] It should be noted that the key points in this embodiment can be the positions of eyebrows, eyes, nose and mouth, etc., and the key points of the user's current expression are compared with the key points of the reference expression (such as neutral expression) to calculate the change of each key point. Since each person's facial features and expression habits are different, the key point change needs to be standardized so that it is not affected by individual differences.
[0075] Furthermore, in step S200, L 目标 The calculation formula is:
[0076] L 目标 (E)=(C(E),I(E))
[0077] Among them, L 目标 It is the target light state calculated according to the user emotion index E, C(E) is the color function, and I(E) is the brightness function.
[0078] Furthermore, the calculation formula of the color function is:
[0079]
[0080] The calculation formula of the brightness function is:
[0081]
[0082] Among them, E max is the maximum possible value of the sentiment index, I max It is the maximum brightness value of the LED light strip.
[0083] Assume that the range of the emotion index E is from 0 to 100, where 0 represents a very negative emotion and 100 represents a very positive emotion. The color function C(E) and the brightness function I(E) are defined as:
[0084]
[0085]
[0086] If the user's emotional index E is 50, indicating a neutral emotional state, then the target LED light state L 目标 (E) is:
[0087] L 目标 (E)=((127.5,127.5,0),0.55·I max )
[0088] The calculation formula for the LED light bar to display the gradient is:
[0089] L 新 (t) = L 旧 +(L 目标 -L 旧 )·(1-e -βt )
[0090] Among them, L 新 (t) is the LED light state at time t, L 旧 is the initial LED light state, β is a positive constant, and t is the time from the start of the gradient to the present.
[0091] Assume that L 旧 =(100,100,100), indicating that the LED light is initially neutral white with a brightness of 100; L 目标 =(255,0,0), indicating that the target LED light is red and the brightness is 255; β = 0.1, indicating the gradient rate.
[0092] If you want to calculate L from t = 0 to t = 5 seconds 新 (t), then we can get when t=1:
[0093] L 新 (1)=(100,100,100)+((255,0,0)-(100,100,100))·(1-e -0.1·1 )
[0094] L 新 (1)≈(114.725,90.5,90.5)
[0095] This means that after 1 second, the LED light will be close to neutral white, but with a slight red tint. Over time, this value will continue to move towards L 新 (t) moves closer until it finally reaches the target state. This process creates a smooth transition effect and avoids the discomfort of sudden changes in light to the user.
[0096] Furthermore, in step S300, the calculation formula of the user feedback index K is:
[0097] K=E+k·U
[0098] Among them, k is the adjustment coefficient and U is the user satisfaction score.
[0099] Furthermore, the calculation formula for user satisfaction score is:
[0100] U=a·F d +b·F f +c·F t
[0101] Among them, F d is the satisfaction score entered by the user, F f is a function of the user's usage frequency, F t is a function of the user’s residence time, and a, b, c are weight coefficients.
[0102] Furthermore, F f The calculation formula is:
[0103]
[0104] Among them, N is the number of times the user uses the mirror cabinet within a certain period of time T. The frequency of users using the LED mirror cabinet can reflect their preference for the product;
[0105] F t The calculation formula is:
[0106]
[0107] Where M is the total number of times the user uses the mirror cabinet, t i It is the time that users stay in front of the mirror cabinet each time they use it. The time that users stay in front of the LED mirror cabinet can indirectly reflect their satisfaction with the current settings.
[0108] Furthermore, in step S400, the weight coefficient w 新 The calculation formula is:
[0109] w 新 =w 旧 +α·U·f i
[0110] Among them, f i It is the normalized value of the change of the i-th facial key point in the current emotion recognition process, and α is a positive number.
[0111] In this way, the update of the weight coefficient directly reflects the user's satisfaction score, allowing the emotion recognition algorithm to better adapt to user feedback. Over time, the system will learn and optimize the weight coefficient through continuous feedback from users, thereby improving the overall user experience.
[0112] In summary, the LED bathroom mirror with user emotion adaptation function of the present embodiment is based on a facial detection module, an LED light bar and a processing module. It captures the facial image of the human face, judges the current emotion according to the recognized facial expression, and makes the LED light bar emit corresponding light to adapt to the current user emotion, which can subconsciously stimulate or soothe emotions. In addition, the present invention will also change the adjustment strategy of the LED light group based on user feedback, so that the present invention can better adapt to the personalized needs of users and solve the growing demand for emotional management.
[0113] In addition, the LED bathroom mirror of this embodiment can also be provided with a music playing module and an aromatherapy module, wherein the music playing module is arranged in the light mirror body, and the speaker connected to the music playing module is facing the outside from the side of the light mirror body; the aromatherapy module is arranged at the bottom or side of the light mirror body.
[0114] When in use, the pre-stored music is classified by category. After the user's emotional index E is calculated according to the above method, in addition to adjusting the brightness of the LED light bar, music of the corresponding category is also played. For example, when the user is happy, light music is played; when the user is depressed, exciting or soothing music is played based on the user's feedback index K; when the user is tired, relaxing music is played, etc. The two dimensions of sound and light are combined to adjust according to the user's emotions, so that the user's negative emotions can be released as soon as possible and positive emotions can be maintained.
[0115] The aromatherapy module mainly adjusts the released aromatherapy concentration / type according to the user's emotional index, so that the user can experience different aromas through concentration matching, thereby improving the user's experience of applying this embodiment.
[0116] Example 2
[0117] This embodiment provides a mirror cabinet, which includes a cabinet body and a cabinet door movably arranged on the cabinet body, and the front end of the cabinet door is provided with the LED bathroom mirror described in Example 1.
[0118] Therefore, the LED bathroom mirror with user emotion adaptation function of the present embodiment is based on a facial detection module, an LED light bar and a processing module. It captures the facial image of the human face, judges the current emotion according to the recognized facial expression, and makes the LED light bar emit corresponding light to adapt to the current user emotion, which can subconsciously stimulate or soothe emotions. In addition, the present invention will also change the adjustment strategy of the LED light group based on user feedback, so that the present invention can better adapt to the personalized needs of users and solve the growing demand for emotional management.
[0119] In this embodiment, the music playing module and the aromatherapy module are both arranged in the cabinet body, so that the structure of the cabinet door is simplified, which is helpful to reduce the weight of the cabinet door.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention, rather than to limit the scope of protection of the present invention. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the present invention.
Claims
1. An LED bathroom mirror with user emotion adaptation function, characterized in that: include: Lamp mirror body; The face detection module is used to obtain the current face image of the user and obtain the key positioning points of the face of the current user; LED light strips, used to display different colors and brightness; and a processing module for processing the facial image collected by the facial detection module, determining the current emotional state of the user, and quantifying the facial image to adjust the color tone of the LED light bar; The LED bathroom mirror is used to be installed on the door of the mirror cabinet; The LED bathroom mirror is also used to perform the following steps: S100. The facial detection module obtains the facial image of the face, obtains the key point changes of the facial expression per unit time, and calculates the corresponding weight coefficients. Calculate the sentiment index , the variation of the key points of the facial expression is the position difference between the key points of the facial image of the face obtained by the facial detection module and the key points of the human body reference expression; S200. The sentiment index Calculate the target light effect state through the target light formula , and through the target light effect state Control the LED light bar to display gradually; S300. Calculate the user feedback index ; S400. Calculate new weight coefficient , and the weight coefficient The value of replaces the weight coefficient in step S100 The value of , and steps S100 to S400 are repeatedly executed; In step S300, the user feedback index The calculation formula is: in, is the adjustment factor, is the user satisfaction score; The calculation formula for user satisfaction score is: in, is the satisfaction rating entered by the user, is a function of the user's usage frequency, is a function of the user’s stay time. is the weight coefficient; The calculation formula is: in, Is the user at a certain time Number of times the mirror cabinet is used; The calculation formula is: in, is the total number of times the user uses the mirror cabinet, It is the duration of the user’s stay in the mirror cabinet each time; In step S400, the weight coefficient The calculation formula is: in, It is the first The normalized value of the variation of facial key points, is a positive number.
2. The LED bathroom mirror with user emotion adaptation function according to claim 1, characterized in that: In step S100, the sentiment index The calculation formula is: in, For the facial expressions, For the The weight coefficient corresponding to each facial expression.
3. The LED bathroom mirror with user emotion adaptation function according to claim 2, characterized in that: The calculation formula is: in, , Is the current expression The coordinates of the key points, , It is the first of the basic expressions. The coordinates of the key points.
4. The LED bathroom mirror with user emotion adaptation function according to claim 1 or 2, characterized in that: In step S200, The calculation formula is: in, Based on the user sentiment index The calculated target light state, is the color function, is the brightness function; The calculation formula for the LED light bar to display the gradient is: in, is the LED light state at time t, is the initial LED light state, is a positive constant, is the time from the start of the gradient to the present.
5. The LED bathroom mirror with user emotion adaptation function according to claim 4, characterized in that: The calculation formula of the color function is: The calculation formula of the brightness function is: in, is the maximum possible value of the sentiment index, It is the maximum brightness value of the LED light strip.
6. A mirror cabinet, comprising a cabinet body and a cabinet door movably arranged on the cabinet body, characterized in that: The cabinet door is provided with the LED bathroom mirror according to any one of claims 1-5.
