Intelligent bathroom cabinet and intelligent bathroom system
By obtaining user facial images in real time and calculating concentration, adjusting the brightness of LED lights, the frequent adjustment of LED light brightness caused by dynamic changes in user positions is solved, and the effect of reducing eye fatigue and visual discomfort is achieved.
Patent Information
- Application Number
- CN202411078637.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-08-07
AI Technical Summary
Due to the dynamic changes in user location, the intensity of the ambient light is constantly changing, and the brightness of the LED light is frequently adjusted, resulting in frequent adjustment of the focal length and pupil size of the eyes, which may lead to eye fatigue and visual discomfort.
By obtaining the user's face image in real time, determining the user's front viewing angle, calculating the user's pitch angle, yaw angle and rolling angle, generating concentration correction values, and adjusting the brightness of the LED light to reduce the brightness adjustment frequency.
By monitoring user concentration in real time, reduce the frequency of LED light brightness adjustment, avoid eye fatigue and visual discomfort, and provide a more comfortable user experience.
Smart Images

Figure CN118900474B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent home control, and in particular to an intelligent bathroom cabinet and an intelligent bathroom system. Background Art
[0002] Smart bathroom cabinets are usually equipped with LED lighting systems that can automatically switch on or off or adjust the brightness according to user needs, and some can also automatically adjust the brightness according to the ambient light. In the prior art, automatic screen brightness adjustment is usually achieved through a special sensor called ambient light sensing technology. Specifically, ambient light sensing technology adjusts the brightness of the LED backlight based on the light data received by the sensor so that it can match the light intensity in the current environment, thereby ensuring that the displayed image color is true and comfortable, while avoiding long-term use of too bright or too dark modes to irritate and fatigue the user's eyes.
[0003] In the prior art, the sensors in the screen ambient light sensing technology are usually located in the area around the top of the mirror or bathroom cabinet to detect the light intensity in front of the user and adjust the screen brightness according to the detected light intensity. However, in actual use, the actual monitored light intensity is constantly changing due to the dynamic change of the user's position, resulting in more frequent light changes, and the LED light brightness will change along with the ambient brightness measured by the sensor, resulting in continuous changes in the brightness of the LED light. The eyes of the viewer need to frequently adjust the focal length and pupil size to adapt to the brightness changes, and too much continuous adjustment may cause problems such as eye fatigue and visual discomfort. Summary of the invention
[0004] The purpose of the present invention is to provide a smart bathroom cabinet and a smart bathroom system to solve the following technical problems:
[0005] Since the user's position is in a dynamic state, the actual monitored light intensity is also constantly changing, resulting in more frequent light changes. The brightness of the LED light changes along with the ambient brightness measured by the sensor, causing the brightness of the LED light to continuously change. The eyes of the viewers need to frequently adjust the focal length and pupil size to adapt to the brightness changes, and too much adjustment may cause eye fatigue, visual discomfort and other problems.
[0006] The purpose of the present invention can be achieved through the following technical solutions:
[0007] A smart bathroom system, a data acquisition module, is used to acquire a facial image of a target user in real time, and determine the frontal viewing direction of the target user in real time according to the facial image, and if the frontal viewing direction coincides with the direction of the bathroom mirror, control the LED light to illuminate at a lighting brightness L', wherein L' is a preset standard brightness value;
[0008] A user monitoring module is used to pre-process the facial image of the target user, generate the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculate the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculate the concentration of the target user according to the pitch angle, yaw angle and roll angle;
[0009] The maximum pixel widths in the temporally adjacent facial images after preprocessing are calculated in sequence, and the distance change value between the target user and the bathroom mirror is calculated based on the maximum pixel width, and a line graph A showing the distance change value changing with time is generated, with the increase in distance being negative and the decrease in distance being positive;
[0010] The result generation module is used to calculate the slope K of any adjacent time in the line graph A, correct the concentration of the target user according to the slope K, and calculate the deviation value of the concentration of the target user at the adjacent time after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
[0011] As a further solution of the present invention: the specific process of calculating the concentration is:
[0012] F=f(θp,tp)+f(θy,ty)+f(θr,tr);
[0013] f(θ,t)=1-(|θ|-t) / ∈;
[0014] Among them, the pitch angle is θp, the yaw angle is θy, the roll angle is θr, the standard value of the pitch angle is tp, the standard value of the yaw angle is ty, the standard value of the roll angle is tr, ∈ is the preset smoothing coefficient and ∈ is a positive number.
[0015] As a further solution of the present invention: the calculation process of the distance change value is:
[0016]
[0017] Among them, C' is the maximum pixel width in the facial image at the previous moment, C is the maximum pixel width in the facial image at the current moment, H0 is the distance change value of the facial image at the previous moment, h' is the distance change value of the facial image at the current moment, and f is the focal length of the image sensor.
[0018] As a further solution of the present invention: the specific process of correction is:
[0019] Obtain the slope K of any sub-segment in the line graph A, and use the correction formula F'=F+{1+1 / (1+e-β*K )} calculate the concentration of the target user; wherein F is the concentration value corresponding to the end point in the sub-segment, F' is the corrected concentration value corresponding to the end point in the sub-segment, β is a preset coefficient and β is greater than 0.
[0020] As a further solution of the present invention: when ΔF<F 标 When the current LED light brightness is maintained.
[0021] As a further solution of the present invention: in the result generation module, the specific process of adjusting the light brightness of the LED lamp is:
[0022] The initial environment brightness L0 and the current environment brightness L are obtained, and the environment brightness deviation value ΔL=L-L0 is calculated. The brightness value L' of the LED lamp is corrected according to ΔL to obtain the brightness value L1'; the distance change value is summed to obtain the distance value D, and the brightness value L1' is readjusted according to the distance value D to obtain the brightness value L2', and the brightness value L2' is used as the current brightness value of the LED lamp;
[0023] The specific calculation process is:
[0024]
[0025] L2'=L1'+α*D;
[0026] Wherein, t is the corresponding moment when the concentration of the target user is greater than or equal to the preset threshold, Di is the distance change value at any moment, α is the preset coefficient and α is greater than 0.
[0027] As a further solution of the present invention: the result generation module further includes obtaining the concentration deviation value of the target user in the monitoring period and generating a monitoring set ΔFjc=(ΔF1, ΔF2, ..., ΔFn) if the concentration of the target user in the monitoring period T is less than a preset threshold, generating a line graph of the concentration deviation value changing over time according to the monitoring set, calculating the average slope k of the line graph, and adjusting the brightness of the LED lamp at the end of the monitoring period T if the average slope is greater than or equal to 0; and not adjusting the brightness of the LED lamp if the average slope is less than 0;
[0028] A smart bathroom cabinet, characterized by comprising the following steps:
[0029] S1, acquiring a facial image of a target user in real time, and determining the front viewing direction of the target user in real time according to the facial image, and if the front viewing direction coincides with the direction of the bathroom mirror, controlling the LED light to illuminate at a lighting brightness L', wherein L' is a preset standard brightness value;
[0030] S2, preprocessing the facial image of the target user, generating the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculating the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculating the concentration of the target user according to the pitch angle, yaw angle and roll angle;
[0031] S3, sequentially calculating the maximum pixel widths in the temporally adjacent facial images after preprocessing, calculating the distance change value between the target user and the bathroom mirror according to the maximum pixel width, and generating a line graph A showing the distance change value changing with time, with the increase in distance being negative and the decrease in distance being positive;
[0032] S4, calculating the slope K of any adjacent time in the line graph A, correcting the concentration of the target user according to the slope K, and calculating the deviation value of the concentration of the target user at adjacent times after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
[0033] Beneficial effects of the present invention:
[0034] In the practical scheme of the present invention,
[0035] By acquiring the user's facial image in real time and judging the user's viewing direction based on the user's facial image, if the viewing direction coincides with the bathroom mirror, it indicates that the target user needs to use the bathroom mirror, and then the LED light is controlled to illuminate at the lighting brightness L' to achieve intelligent control. By calculating the coordinates of the user's facial center point, the user's pitch angle, yaw angle and roll angle can be accurately determined. The user's head movement can be accurately identified based on the user's pitch angle, yaw angle and roll angle. The target user's concentration on the bathroom mirror can be identified based on the user's head movement, and a distance change value can be generated at the same time. The line graph changes with time. The slope of the line segment at any adjacent time in the line graph is calculated. The focus of the target user is corrected according to the slope. It can be understood that the slope represents the rate of change of whether the user's current position is closer to or farther away from the bathroom mirror compared to the position at the previous moment. If the slope is a positive value, it indicates that the user may be more interested in the content in the bathroom mirror, so the user's focus is increasing; if the slope is a negative value, it indicates that the user's focus on the bathroom mirror is decreasing, thereby achieving accurate judgment of the user's focus, and calculating the focus deviation value of the user at adjacent moments after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标A monitoring period T is preset. If the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the brightness L' of the LED light is adjusted immediately. By calculating the concentration deviation value ΔF in real time, the change of the user's concentration can be quickly detected. When the user's concentration increases, it means that the user may be more interested in the content in the mirror. Therefore, the monitoring period T is set, and the user's concentration value is obtained. When the user's concentration changes to a certain extent, the light brightness is adjusted immediately. The brightness of the LED light is adjusted according to the change in the user's concentration on the bathroom mirror, thereby reducing the frequency of adjusting the brightness of the LED light and avoiding problems such as eye fatigue and visual discomfort. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The present invention will be further described below in conjunction with the accompanying drawings.
[0037] Figure 1 It is a schematic diagram of a process of an intelligent bathroom system of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] See also Figure 1 As shown, the present invention is a smart bathroom system, comprising:
[0040] A data acquisition module is used to acquire a facial image of a target user in real time, and determine the front viewing direction of the target user in real time according to the facial image. If the front viewing direction coincides with the direction of the bathroom mirror, the LED light is controlled to illuminate at a lighting brightness L', wherein L' is a preset standard brightness value;
[0041] A user monitoring module is used to pre-process the facial image of the target user, generate the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculate the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculate the concentration of the target user according to the pitch angle, yaw angle and roll angle;
[0042] The maximum pixel widths in the temporally adjacent facial images after preprocessing are calculated in sequence, and the distance change value between the target user and the bathroom mirror is calculated based on the maximum pixel width, and a line graph A showing the distance change value changing with time is generated, with the increase in distance being negative and the decrease in distance being positive;
[0043] The result generation module is used to calculate the slope K of any adjacent time in the line graph A, correct the concentration of the target user according to the slope K, and calculate the deviation value of the concentration of the target user at the adjacent time after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
[0044] By acquiring the user's facial image in real time and judging the user's viewing direction based on the user's facial image, if the viewing direction coincides with the bathroom mirror, it indicates that the target user needs to use the bathroom mirror, and then the LED light is controlled to illuminate at the lighting brightness L' to achieve intelligent control. By calculating the coordinates of the user's facial center point, the user's pitch angle, yaw angle and roll angle can be accurately determined. The user's head movement can be accurately identified based on the user's pitch angle, yaw angle and roll angle. The target user's concentration on the bathroom mirror can be identified based on the user's head movement, and a distance change value can be generated at the same time. The line graph changes with time. The slope of the line segment at any adjacent time in the line graph is calculated. The focus of the target user is corrected according to the slope. It can be understood that the slope represents the rate of change of whether the user's current position is closer to or farther away from the bathroom mirror compared to the position at the previous moment. If the slope is a positive value, it indicates that the user may be more interested in the content in the bathroom mirror, so the user's focus is increasing; if the slope is a negative value, it indicates that the user's focus on the bathroom mirror is decreasing, thereby achieving accurate judgment of the user's focus, and calculating the focus deviation value of the user at adjacent moments after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset. If the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the brightness L' of the LED light is adjusted immediately. By calculating the concentration deviation value ΔF in real time, the change of the user's concentration can be quickly detected. When the user's concentration increases, it means that the user may be more interested in the content in the mirror. Therefore, the monitoring period T is set, and the user's concentration value is obtained. When the user's concentration changes to a certain extent, the light brightness is adjusted immediately. The brightness of the LED light is adjusted according to the change in the user's concentration on the bathroom mirror, thereby reducing the frequency of adjusting the brightness of the LED light and avoiding problems such as eye fatigue and visual discomfort.
[0045] It can be understood that the deflection angle of the head can reflect the user's concentration state to a certain extent. People usually do not look at something with their eyes slanted. Therefore, the angle of the user's facial direction can be approximately regarded as the angle of the user's line of sight. If the user's line of sight is always facing the mirror, it indicates that the user's attention is on the content in the mirror. It can be temporarily considered that the user's concentration is in a concentrated state. However, if the user's head deflection angle is too large and the line of sight has deviated from the outside of the mirror, the user's attention may not be on the content in the mirror at this time. Therefore, the present invention identifies the user's concentration by detecting the user's head movement, and when the user's concentration increases, it means that the user may be more interested in the content in the mirror, and sets a monitoring period T. When the user's concentration changes to a certain extent, the light brightness is adjusted immediately, thereby realizing real-time dynamic adjustment of the light according to the user's concentration, thereby reducing the adjustment frequency of the LED light brightness, thereby avoiding problems such as eye fatigue and visual discomfort.
[0046] In another preferred embodiment of the present invention, in the user monitoring module, the specific process of calculating the concentration is:
[0047] F=f(θp,tp)+f(θy,ty)+f(θr,tr);
[0048] f(θ,t)=1-(|θ|-t) / ∈;
[0049] Among them, the pitch angle is θp, the yaw angle is θy, the roll angle is θr, the standard value of the pitch angle is tp, the standard value of the yaw angle is ty, the standard value of the roll angle is tr, ∈ is the preset smoothing coefficient and ∈ is a positive number.
[0050] It can be understood that the deflection angle of the human head can be divided into three directions: X, Y, and Z, and represented by three values: pitch, yaw, and roll. Pitch refers to the pitch angle, which corresponds to the X-axis coordinate, indicating raising the head up or down; yaw refers to the yaw angle, which corresponds to the Y-axis, indicating turning the head left or right; roll refers to the roll angle, which corresponds to the Z-axis, indicating that the head tilts left or right. In a normal state, the deflection angle range of the human head is: the deflection range around the X-axis is [-60°, 70°], the deflection range around the Y-axis is [-60°, 60°], and the deflection range around the Z-axis is [-50°, -36°]. Usually, when the user looks in the mirror, the pitch angle (Pitch) remains horizontal, the yaw angle (Yaw) means that the face is facing the mirror directly without turning left or right, and the roll angle (Roll) ll) At the same time, the head does not tilt to the left or right, so the user's pitch angle, yaw angle and roll angle can reflect the user's slight head movements in detail. These movements are often closely related to the user's attention. By monitoring the changes in these angles in real time, the user's concentration state can be captured instantly.
[0051] In another preferred embodiment of the present invention, in the user monitoring module, the distance change value is calculated as follows:
[0052]
[0053] Among them, C' is the maximum pixel width in the facial image at the previous moment, C is the maximum pixel width in the facial image at the current moment, H0 is the distance change value of the facial image at the previous moment, h' is the distance change value of the facial image at the current moment, and f is the focal length of the image sensor.
[0054] In another preferred embodiment of the present invention, in the result generation module, the specific process of correction is:
[0055] Obtain the slope K of any sub-segment in the line graph A, and use the correction formula F'=F+{1+1 / (1+e -β*K )} calculate the concentration of the target user; wherein F is the concentration value corresponding to the end point in the sub-segment, F' is the corrected concentration value corresponding to the end point in the sub-segment, β is a preset coefficient and β is greater than 0.
[0056] It can be understood that the slope K indicates whether the user's current position is closer to or farther from the bathroom mirror compared to the position at the previous moment. To a certain extent, the slope K indicates the rate of change of concentration within the sub-segment time interval. If K is a positive value, it indicates that the user's concentration on the bathroom mirror is increasing; if K is a negative value, it indicates that the user's concentration on the bathroom mirror is decreasing. Therefore, the slope of the distance change value is used to correct the user's concentration. For example, after completing certain actions such as washing the face and brushing teeth, the user may perform the next action such as makeup and shaving to observe the results of the action. This behavior of approaching the mirror is usually accompanied by an increase in concentration. Therefore, the change in user concentration can be inferred through this change in distance, thereby more accurately capturing the user's interactive behavior.
[0057] In another preferred embodiment of the present invention, in the result generation module, when ΔF<F 标 When the current LED light brightness is maintained.
[0058] It can be understood that when ΔF<F 标 This indicates that the user's concentration has not changed much, indicating that the current brightness of the LED lamp is suitable for the user or the user's current concentration is not focused on the bathroom mirror. Therefore, maintaining the current brightness of the LED lamp not only provides a stable lighting, but also avoids constant adjustment that may cause problems such as eye fatigue and visual discomfort, while reducing energy loss.
[0059] In another preferred embodiment of the present invention, in the result generation module, the specific process of adjusting the light brightness of the LED lamp is:
[0060] The initial environment brightness L0 and the current environment brightness L are obtained, and the environment brightness deviation value ΔL=L-L0 is calculated. The brightness value L' of the LED lamp is corrected according to ΔL to obtain the brightness value L1'; the distance change value is summed to obtain the distance value D, and the brightness value L1' is readjusted according to the distance value D to obtain the brightness value L2', and the brightness value L2' is used as the current brightness value of the LED lamp;
[0061] The specific calculation process is:
[0062]
[0063] L2'=L1'+α*D;
[0064] Wherein, t is the corresponding moment when the concentration of the target user is greater than or equal to the preset threshold, Di is the distance change value at any moment, α is the preset coefficient and α is greater than 0.
[0065] It can be understood that the brightness of the LED light is automatically adjusted according to the current ambient brightness, which can ensure that the user is always in a lighting environment with appropriate and comfortable light, which not only improves the user's visual comfort, but also helps to reduce eye fatigue or other discomfort caused by uncomfortable light. At the same time, the distance change value is summed to obtain the distance value D, and the brightness value L1' is readjusted according to the distance value D. It can be understood that when the user is close to the bathroom mirror, it means that the user is more focused on the content in the mirror. At this time, increasing the brightness can provide better lighting support and help the user see the details more clearly. When the user is away from the bathroom mirror, it means that the user's concentration may be transferred or reduced. At this time, appropriately reducing the brightness can avoid energy waste and reduce the impact of unnecessary light on the user. Therefore, the brightness value L1' is further corrected according to the actual distance change of the user.
[0066] In addition, it should be noted that the present invention is a data processing method for the ambient brightness value measured by the sensor, and does not involve a specific data conversion method from the ambient brightness value to the display brightness value. Therefore, for the present invention, the operation of obtaining the display brightness value from the ambient brightness value is borrowed from the solution in the prior art.
[0067] In another preferred embodiment of the present invention, if the concentration of the target user in the monitoring period T is less than a preset threshold, the concentration deviation value of the target user in the monitoring period is obtained and a monitoring set ΔFjc=(ΔF1, ΔF2, ..., ΔFn) is generated, a line graph of the concentration deviation value changing with time is generated according to the monitoring set, and an average slope k of the line graph is calculated. If the average slope is greater than 0, the brightness of the LED lamp is adjusted at the end of the monitoring period T; if the average slope is less than or equal to 0, the brightness of the LED lamp is not adjusted;
[0068] It can be understood that when the average slope K is greater than 0, it means that the target user's concentration has increased overall during the monitoring period T. By monitoring the user's concentration, the system can more accurately judge the user's demand for light, especially when the concentration is low and the concentration is increasing. The brightness of the LED is adjusted in time to provide a personalized lighting experience and enhance user satisfaction. When the average slope K is greater than 0, it means that the user's attention to the content in the mirror is gradually decreasing during the monitoring period, indicating that the target user may have completed certain actions, such as makeup, shaving, etc. At this time, maintaining the brightness of the LED light can avoid excessive and continuous adjustments that may cause eye fatigue, visual discomfort and other problems.
[0069] A smart bathroom cabinet, characterized by comprising the following steps:
[0070] S1, acquiring a facial image of a target user in real time, and determining the front viewing direction of the target user in real time according to the facial image, and if the front viewing direction coincides with the direction of the bathroom mirror, controlling the LED light to illuminate at a lighting brightness L', wherein L' is a preset standard brightness value;
[0071] S2, preprocessing the facial image of the target user, generating the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculating the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculating the concentration of the target user according to the pitch angle, yaw angle and roll angle;
[0072] S3, sequentially calculating the maximum pixel widths in the temporally adjacent facial images after preprocessing, calculating the distance change value between the target user and the bathroom mirror according to the maximum pixel width, and generating a line graph A showing the distance change value changing with time, with the increase in distance being negative and the decrease in distance being positive;
[0073] S4, calculating the slope K of any adjacent time in the line graph A, correcting the concentration of the target user according to the slope K, and calculating the deviation value of the concentration of the target user at adjacent times after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
[0074] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.
Claims
1. A smart bathroom system, characterized in that: include: A data acquisition module is used to acquire a facial image of a target user in real time, and determine the front viewing direction of the target user in real time according to the facial image. If the front viewing direction coincides with the direction of the bathroom mirror, the LED light is controlled to illuminate at a lighting brightness L', where L' is a preset standard brightness value; A user monitoring module is used to pre-process the facial image of the target user, generate the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculate the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculate the concentration of the target user according to the pitch angle, yaw angle and roll angle; The maximum pixel widths in the temporally adjacent facial images after preprocessing are calculated in sequence, and the distance change value between the target user and the bathroom mirror is calculated based on the maximum pixel width, and a line graph A showing the distance change value changing with time is generated, with the increase in distance being negative and the decrease in distance being positive; The result generation module is used to calculate the slope K of any adjacent time in the line graph A, correct the focus of the target user according to the slope K, and calculate the deviation value of the focus of the target user at adjacent times after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
2. The intelligent bathroom system according to claim 1, characterized in that: In the user monitoring module, the specific process of calculating the concentration is as follows: ; Among them, the pitch angle is θp, the yaw angle is θy, the roll angle is θr, the standard value of the pitch angle is tp, the standard value of the yaw angle is ty, the standard value of the roll angle is tr, θ is the angle value, t is the standard angle value, is the preset coefficient and Is a positive number.
3. The intelligent bathroom system according to claim 1, characterized in that: In the user monitoring module, the distance change value is calculated as follows: ; Among them, C' is the maximum pixel width in the facial image at the previous moment, C is the maximum pixel width in the facial image at the current moment, H0 is the distance change value of the facial image at the previous moment, h' is the distance change value of the facial image at the current moment, and f is the focal length of the image sensor.
4. The intelligent bathroom system according to claim 1, characterized in that: In the result generation module, the specific process of correction is as follows: Get the slope K of any sub-segment in line graph A, and modify it according to the formula The concentration of the target user is calculated; wherein F is the concentration value corresponding to the end point of the sub-segment, F' is the corrected concentration value corresponding to the end point in the sub-segment, and β is a preset coefficient and β is greater than 0.
5. The intelligent bathroom system according to claim 1, characterized in that: In the result generation module, when ΔF<F 标 When the current LED light brightness is maintained.
6. The intelligent bathroom system according to claim 1, characterized in that: In the result generation module, the specific process of adjusting the lighting brightness of the LED lamp is as follows: Obtain the ambient brightness value L0 corresponding to the preset standard brightness value L' and the current ambient brightness L, calculate the ambient brightness deviation value ΔL=L-L0, and correct the lighting brightness L' of the LED lamp according to ΔL to obtain the lighting brightness L1'; The distance change values are summed to obtain a distance value D, and the lighting brightness L1' is readjusted according to the distance value D to obtain a lighting brightness L2', and the lighting brightness L2' is used as the lighting brightness of the current LED lamp; The specific calculation process is: ; Among them, t is the corresponding moment when the concentration of the target user is greater than or equal to the preset threshold, Di is the distance change value at any moment, α is the preset coefficient and α is greater than 0.
7. The intelligent bathroom system according to claim 1, characterized in that: The result generation module also includes obtaining the concentration deviation value of the target user in the monitoring period and generating a monitoring set ΔFjc=(ΔF1, ΔF2, ..., ΔFn) if the concentration of the target user in the monitoring period T is less than a preset threshold, generating a line graph of the concentration deviation value changing with time according to the monitoring set, calculating the average slope k of the line graph, and adjusting the lighting brightness of the LED lamp at the end of the monitoring period T if the average slope is greater than 0; if the average slope is less than or equal to 0, not adjusting the lighting brightness of the LED lamp.
8. A smart bathroom cabinet, used to implement a smart bathroom system according to any one of claims 1 to 7, characterized in that: The following steps are involved: S1, acquiring a facial image of a target user in real time, and determining the front viewing direction of the target user in real time according to the facial image, and if the front viewing direction coincides with the direction of the bathroom mirror, controlling the LED light to illuminate at a lighting brightness L', wherein L' is a preset standard brightness value; S2, preprocessing the facial image of the target user, generating the coordinates (Xc, Yc) of the facial center point of the target user in real time, calculating the pitch angle, yaw angle and roll angle corresponding to the target user at any time according to the coordinates (Xc, Yc), and calculating the concentration of the target user according to the pitch angle, yaw angle and roll angle; S3, sequentially calculating the maximum pixel widths in the temporally adjacent facial images after preprocessing, calculating the distance change value between the target user and the bathroom mirror according to the maximum pixel width, and generating a line graph A showing the distance change value changing with time, with the increase in distance being negative and the decrease in distance being positive; S4, calculate the slope K of any adjacent time in the line graph A, correct the concentration of the target user according to the slope K, and calculate the deviation value of the concentration of the target user at adjacent times after correction ΔF=F n -F n-1 , and when ΔF ≥ F 标 A monitoring period T is preset, and if the concentration of the target user within the monitoring period T is greater than or equal to the preset threshold, the lighting brightness L' of the LED lamp is immediately adjusted.
Citation Information
Patent Citations
Bathroom mirror LED control system capable of changing irradiation angle
CN116997046A
Control method and equipment applied to mirror cabinet and medium
CN116997054A