A bathroom mirror-based ambient adaptive dimming method and system

CN122952457APending Publication Date: 2026-10-20杭州西奈电子科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611231478.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

[0004]由于目前的智能卫浴镜一般仅检测人是否处于镜子前面来控制灯的启闭,且灯开启的亮度固定,从而容易导致在夜晚开启时亮度过高,在白天光照强度高时亮度过低,无法满足使用者的实际使用需求

Benefits of technology

1.同步采集环境光参数与人体感应参数,通过实时环境光参数确定环境光基准参数,结合人体感应数据精准判定人员存在状态与相对镜位关系,进一步识别用户的人体动作类型并匹配对应调光需求系数,同时检测人体遮挡镜面产生的光影遮挡参数,多维度融合计算得到适配当前环境、人体姿态、动作场景的目标调光参数,从而实现卫浴镜光源的精细化、场景化自适应调光,提升卫浴镜照明舒适度与补光精准度,进而使智能卫浴镜在不同环境下均能够满足使用者的实际使用需求;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
  • Figure FT_3
    Figure FT_3
Patent Text Reader

Abstract

This invention relates to an environmental adaptive dimming method and system for bathroom mirrors, belonging to the field of smart bathroom mirror technology. The method includes: collecting real-time ambient light parameters and human body sensing parameters; determining ambient light reference parameters based on the real-time ambient light parameters; determining the human body presence state and position information based on the human body sensing parameters; when the human body presence state meets a preset human body presence reference state, determining the human body-mirror position relationship based on the human body position information; determining the human body movement type based on the human body-mirror position relationship; determining the movement dimming requirement coefficient based on the human body movement type; determining light blocking parameters by combining the real-time ambient light parameters and the human body position information; determining the target dimming parameter by combining the ambient light reference parameters, the movement dimming requirement coefficient, and the light blocking parameter; and controlling the LED light source of the bathroom mirror to dim based on the target dimming parameter. This invention enables smart bathroom mirrors to meet the actual usage needs of users in different environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart bathroom mirror technology, and in particular to an environmental adaptive dimming method and system based on a bathroom mirror. Background Technology

[0002] Smart bathroom mirrors are waterproof bathroom mirrors designed to adapt to the humid environment of bathrooms. They integrate electronic and intelligent control systems and add one or more intelligent functions such as LED lighting, defogging, touch / voice interaction, information display, audio-visual entertainment, and smart home integration to the traditional mirror surface.

[0003] Most smart bathroom mirrors are equipped with infrared human body sensors. By detecting the human body, they automatically turn on and maintain a preset brightness when a person is detected approaching. When the person leaves and a preset duration is reached, the brightness will gradually decrease until the light turns off.

[0004] Because current smart bathroom mirrors generally only detect whether a person is in front of the mirror to control the lights, and the brightness of the lights is fixed, they are prone to being too bright at night and too dim during the day when the light intensity is high, which cannot meet the actual needs of users. Summary of the Invention

[0005] In order to enable smart bathroom mirrors to meet the actual needs of users in different environments, this invention provides an environmental adaptive dimming method and system based on bathroom mirrors.

[0006] In a first aspect, the present invention provides an environmental adaptive dimming method based on a bathroom mirror, employing the following technical solution: An environmental adaptive dimming method based on a bathroom mirror includes: Collect real-time ambient light parameters of the environment where the bathroom mirror is located and human body sensing parameters corresponding to the human body sensor preset on the bathroom mirror. Determine the ambient light reference parameters based on real-time ambient light parameters; The presence and location information of a human body are determined based on human body sensing parameters. When the human body's state meets the preset baseline state of human body existence, the mirror position relationship of the human body is determined based on the human body's position information. Determine the type of human movement based on the mirror position relationship of the human body; Determine the motion dimming requirement coefficient based on the type of human movement; The light occlusion parameters are determined by combining real-time ambient light parameters with human position information; By combining ambient light reference parameters, motion dimming demand coefficients, and light occlusion parameters, the target dimming parameters are determined, and the LED light source of the bathroom mirror is controlled to dim the output based on the target dimming parameters.

[0007] By adopting the above technical solution, ambient light parameters and human body sensing parameters are collected simultaneously. The ambient light reference parameters are determined by real-time ambient light parameters, and the presence status of the person and their relative position to the mirror are accurately determined by combining human body sensing data. The user's human body movement type is further identified and the corresponding dimming requirement coefficient is matched. At the same time, the light and shadow occlusion parameters caused by the human body blocking the mirror are detected. The target dimming parameters that are adapted to the current environment, human posture, and movement scene are obtained through multi-dimensional fusion calculation. This enables the bathroom mirror light source to achieve refined and scene-based adaptive dimming, improves the lighting comfort and supplementary light accuracy of the bathroom mirror, and enables the smart bathroom mirror to meet the actual use needs of users in different environments.

[0008] Optional methods for determining ambient light reference parameters include: The ambient light intensity and color temperature values ​​are retrieved based on real-time ambient light parameters. Collect current time parameters and spatial reflection parameters of the space where the bathroom mirror is located; The time correction factor is determined based on the current time parameters, and the reflection correction factor is determined based on the spatial reflection parameters; The overall correction factor is determined by combining the time correction factor and the reflection correction factor; Calculate the product between the ambient light intensity value and the comprehensive correction factor, and use it as the corrected light intensity value; The modified illuminance value is combined with the ambient light color temperature value and used as the ambient light reference parameter.

[0009] By adopting the above technical solution, current time parameters and spatial reflection parameters are introduced, and time correction coefficients and reflection correction coefficients are determined respectively. These are then combined to form a comprehensive correction coefficient to correct the ambient light intensity value, resulting in a corrected light intensity value. This corrected light intensity value is then combined with the ambient light color temperature value as an ambient light reference parameter. This reduces the interference of different usage periods and differences in the spatial reflection characteristics of the bathroom mirror on the perception of ambient light, enabling the ambient light reference parameter to more accurately reflect the effective lighting conditions. This provides a more reliable reference for subsequent dimming decisions and improves the adaptability of dimming control.

[0010] Optional methods for determining the mirror position relationship of the human body include: Retrieve human body sensor location points and human body sensor values ​​based on human body location information; The human body sensing distance and angle values ​​are determined based on the human body sensing location points. The average distance and the change in distance due to human body sensing distance are calculated and determined. The average angle and the change in angle movement are calculated and determined based on the human body sensing angle value. The average position is determined by combining the average distance and the average angle, and the movement change is determined by combining the changes in distance movement and the changes in angle movement. Determine if the human body sensor value is greater than 1; If so, the human body sensing location points are selected by combining the average distance, average angle, distance movement change, and angle movement change, and are used as the selection location points for primary and secondary personnel. The average position and movement change of the selected positions of the main personnel are used as the camera position relationship of the main personnel, and the average position and movement change of the selected positions of the secondary personnel are used as the camera position relationship of the secondary personnel. The camera position relationships of primary and secondary personnel are combined and used as the human body camera position relationships; If not, then the average position and the state of movement change are directly used as the human body mirror position relationship.

[0011] By adopting the above technical solution, the human body sensing distance and angle values ​​are statistically calculated to determine the average distance value and distance movement change value, the average angle value and angle movement change value, and combined with the human body sensing values ​​for judgment. In multi-person scenarios, it is possible to distinguish between primary and secondary personnel and establish corresponding human body mirror position relationships, thereby adapting to the actual scenarios of single and multiple people using bathroom mirrors. This lays the foundation for subsequent dimming control based on personnel differences and improves the applicability of dimming methods in multiple scenarios.

[0012] Optionally, the methods for selecting location points for key personnel and secondary personnel include: Determine the reference value of the mean by combining the average distance and the average angle; Determine the distance movement reference value based on the distance movement change value; The angle movement reference value is determined by comparing the changes in angle movement with the preset center movement reference value. Calculate the product of the mean reference value, the distance movement reference value, and the angle movement reference value, and use it as the single-position reference value; Based on the single-position reference values, the human body sensing position points are sorted from largest to smallest, and the human body sensing position point with the highest ranking is selected as the primary human body selection position point. The human body sensing position points other than the primary human body selection position point are selected as secondary human body selection position points.

[0013] By adopting the above technical solution, a mean reference value is determined by combining the average distance and the average angle. Based on the changes in distance movement and angle movement, reference values ​​for distance movement and angle movement are determined respectively. Then, reference values ​​for a single position are calculated and sorted. The human body sensing position point with the highest ranking is selected as the main personnel selection position point. This comprehensively evaluates personnel based on multiple dimensions such as static position, dynamic movement changes, and angle deviation, making the selection of main personnel more objective and accurate. In multi-person usage scenarios, priority response objects can be established, improving the pertinence and rationality of dimming control.

[0014] Optional methods for determining human movement types include: Based on the human body mirror position relationship, retrieve the average position status and movement change status; Determine the type of movement to be predicted based on the average position status; Determine the type of movement to be predicted based on the movement change status; The overall predicted action type is determined by combining the predicted action type based on the predicted position and the predicted movement. Determine whether there is only one type of predicted combined action; If so, the estimated composite movement type will be used as the human movement type; If not, the severity value of the person is retrieved based on the mirror position relationship of the human body; The required dimming value for the motion is determined based on the estimated overall motion type; The type selection value is determined by combining the motion dimming requirement value and the personnel importance value; Sort the types from largest to smallest based on the type selection value, and select the predicted comprehensive action type corresponding to the type selection value with the highest ranking as the human action type.

[0015] By adopting the above technical solution, the predicted action type of position and the predicted action type of movement are determined by comprehensively considering the average position state and the movement change state, respectively. The two types are then combined to form a predicted comprehensive action type. When there are multiple predicted comprehensive action types, the type selection value is further determined by combining the person's importance value and the action dimming requirement value, and then sorted and selected. Thus, when there are multiple predicted comprehensive action types, the importance of the person and the action dimming requirement are used for comprehensive evaluation, making the finally determined human action type more in line with the actual use situation, improving the reliability of action recognition and the accuracy of dimming decision.

[0016] Optional methods for determining the motion dimming demand factor include: The brightness adjustment coefficient and color temperature adjustment coefficient of the human body movement are retrieved based on the type of human movement. Determine the position brightness adjustment coefficient based on the average position status; Determine the motion attenuation coefficient based on the motion change state; The brightness reference adjustment coefficient is determined by combining the motion brightness adjustment coefficient and the position brightness adjustment coefficient; Calculate the product of the brightness reference adjustment factor and the motion attenuation factor, and use it as the overall brightness adjustment factor; Calculate the product of the motion color temperature adjustment coefficient and the motion attenuation coefficient, and use it as the overall color temperature adjustment coefficient. The brightness adjustment coefficient and the color temperature adjustment coefficient are combined and used as the dimming requirement coefficient.

[0017] By adopting the above technical solution, the brightness baseline adjustment coefficient is determined by combining the motion brightness adjustment coefficient and the position brightness adjustment coefficient. Then, the brightness comprehensive adjustment coefficient and the color temperature comprehensive adjustment coefficient are calculated by combining the movement attenuation coefficient. The motion dimming demand coefficient is obtained by combining these factors. This takes into account the brightness and color temperature adjustment requirements corresponding to human motion types, the brightness compensation requirements of position status, and the attenuation effect of movement status on dimming effect. As a result, the final determined motion dimming demand coefficient can more comprehensively reflect the user's actual dimming needs.

[0018] Optional methods for determining light occlusion parameters include: Retrieve human projection coordinates and human contour parameters based on human position information; Determine the direction and intensity of the ambient light source based on real-time ambient light parameters; Calculate the shadow area of ​​the human body based on human body contour parameters and human body projection coordinates; Determine the mirror coverage area by combining the direction of ambient light sources and the area of ​​human shadows; Determine the degree of obstruction by combining the area covered by the mirror reflection with the preset total area of ​​the bathroom mirror surface; The light intensity occlusion adjustment value is determined based on the occlusion ratio and the ambient light intensity value, and the light intensity occlusion adjustment value is used as the light occlusion parameter.

[0019] By adopting the above technical solution, the human body projection coordinates and human body contour parameters are retrieved, the mirror shadow coverage area is determined in combination with the direction of the ambient light source, and the occlusion ratio is calculated based on the mirror shadow coverage area and the total area of ​​the bathroom mirror surface. Then, the light intensity occlusion adjustment value is determined in combination with the ambient light source intensity value as the light occlusion parameter, thereby compensating for the local light deficiency caused by the human body position and further improving the dimming control's response to the actual lighting environment.

[0020] Optionally, after controlling the LED light source of the bathroom mirror to dim the output based on the target dimming parameters, the following additional steps are included: Determine the height and position of the human eye based on human body contour parameters; The eye illumination adjustment value is determined based on the height position of the human eye. Determine the movement adjustment coefficient based on the movement change status; The illuminance feedback parameters are determined by combining the eye illuminance adjustment value and the motion adjustment coefficient, and then the illuminance feedback parameters are output to the LED light source of the bathroom mirror.

[0021] By adopting the above technical solution, the eye height position is determined based on human body contour parameters, then the eye illuminance adjustment value is determined, the movement adjustment coefficient is determined by the movement change state, and then the illuminance feedback parameter is determined by combining the eye illuminance adjustment value and the movement adjustment coefficient and output to the LED light source of the bathroom mirror. By introducing feedback correction based on eye position and movement change state, the dimming feedback is more in line with the characteristics of human visual perception, and the precision of dimming output is further improved.

[0022] Optionally, the output illuminance feedback parameters may also include the following before the LED light source of the bathroom mirror: Collect the actual illuminance value of the area in front of the bathroom mirror and use it as the feedback illuminance value; Retrieve the target illuminance value based on the target dimming parameters; Calculate the difference between the target illuminance value and the feedback illuminance value and use it as the illuminance deviation value; Determine whether the illuminance deviation value is less than the preset illuminance deviation reference value; If so, the illuminance feedback parameters will continue to be output to the LED light source of the bathroom mirror; If not, then combine the illuminance deviation value with the illuminance deviation reference value to determine the additional dimming parameters; The dimming additional parameters and illuminance feedback parameters are combined and used as dimming correction parameters, which are then output to the LED light source of the bathroom mirror.

[0023] By adopting the above technical solution, before outputting the illuminance feedback parameters, the feedback illuminance value is collected and the target illuminance value is retrieved to calculate the illuminance deviation value. When the illuminance deviation value is not less than the preset illuminance deviation benchmark value, the dimming additional parameters are determined and combined with the illuminance feedback parameters to form dimming correction parameters before output. Thus, when the deviation between the feedback value and the target value is large, correction parameters are actively generated to reduce possible dimming deviations and improve the stability of dimming output.

[0024] Secondly, this invention provides an environmental adaptive dimming system based on a bathroom mirror, employing the following technical solution: An environmental adaptive dimming system based on a bathroom mirror includes: The data acquisition module is used to collect real-time ambient light parameters, human body sensing parameters, current time parameters, spatial reflection parameters, feedback illuminance values, and feedback color temperature values. The memory stores a program for implementing an environmental adaptive dimming method based on a bathroom mirror as described in any one of the first aspects; The processor loads and executes programs stored in memory.

[0025] In summary, the present invention has at least one of the following beneficial technical effects: 1. Simultaneously collect ambient light parameters and human body sensing parameters. Determine the ambient light baseline parameters through real-time ambient light parameters, and accurately determine the presence status of people and their relative mirror position by combining human body sensing data. Further identify the user's human body movement type and match the corresponding dimming requirement coefficient. At the same time, detect the light and shadow occlusion parameters caused by the human body blocking the mirror surface. Multi-dimensional fusion calculation is used to obtain the target dimming parameters that are adapted to the current environment, human posture, and action scene. This enables the bathroom mirror light source to achieve refined and scene-based adaptive dimming, improve the lighting comfort and supplementary light accuracy of the bathroom mirror, and thus enable the smart bathroom mirror to meet the actual use needs of users in different environments. 2. Introducing current time parameters and spatial reflection parameters, determining time correction coefficients and reflection correction coefficients respectively, and combining them to form a comprehensive correction coefficient to correct the ambient light intensity value, obtaining the corrected light intensity value, and then combining it with the ambient light color temperature value as the ambient light reference parameter, thereby reducing the interference of different usage periods and differences in the spatial reflection characteristics of the bathroom mirror on the perception of ambient light, so that the ambient light reference parameter can more realistically reflect the effective lighting conditions, providing a more reliable reference for subsequent dimming decisions and improving the adaptability of dimming control; 3. Statistical calculations are performed on the human body sensing distance and angle values ​​to determine the average distance and distance movement change, and the average angle and angle movement change. Combined with the human body sensing values, judgments are made to distinguish between primary and secondary personnel in multi-person scenarios, and corresponding human body mirror positions are established for each. This adapts to the actual scenarios of single and multi-person use of bathroom mirrors, laying the foundation for subsequent dimming control based on personnel differences and improving the applicability of dimming methods in multiple scenarios. Attached Figure Description

[0026] Figure 1 This is a flowchart of a method for adaptive dimming of bathroom mirrors based on environmental conditions. Figure 2 This is a schematic diagram of a scene based on adaptive dimming of the bathroom mirror. Figure 3 This is a flowchart illustrating the method for dimming the LED light source of a bathroom mirror based on target dimming parameters. Detailed Implementation

[0027] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0028] An environmental adaptive dimming method based on a bathroom mirror is proposed. This method collects ambient light parameters and human body sensing parameters to determine the ambient light baseline, human presence status, and position information. Furthermore, it incorporates a primary / secondary user selection logic in multi-person scenarios to identify user action types and corresponding dimming needs. Simultaneously, by evaluating the impact of human occlusion on mirror illumination, it combines environmental baseline, action needs, and occlusion compensation to generate target dimming parameters. By introducing feedback based on eye position, actual illuminance, and actual color temperature, it continuously compares the target value with the feedback value. When the deviation exceeds a preset range, additional correction parameters are generated. This achieves refined and scenario-based adaptive dimming of the bathroom mirror light source, improving lighting comfort and supplementary lighting accuracy, thus enabling the smart bathroom mirror to meet the user's actual needs in different environments.

[0029] Reference Figure 1 and Figure 2 This invention discloses an environmental adaptive dimming method based on a bathroom mirror, comprising: S100: Collects real-time ambient light parameters of the environment where the bathroom mirror is located and human body sensing parameters corresponding to the human body sensor preset on the bathroom mirror.

[0030] Real-time ambient light parameters refer to a set of quantitative data characterizing the combined illumination conditions of natural and artificial ambient light in the bathroom space. These typically include ambient light intensity and color temperature values, reflecting the actual lighting environment of the bathroom at any given moment. Real-time ambient light parameters are acquired through a light sensor pre-installed on the bathroom mirror.

[0031] Human body sensing parameters refer to the raw data set of the state and positional distribution characteristics of a human body in the space in front of a bathroom mirror. Human body sensing parameters are obtained by real-time detection of human bodies within the required sensing area using a human body sensor pre-installed on the bathroom mirror, and the duration and location of the detected human body are combined to form the human body sensing parameters. The human body sensor can be an infrared sensor or a microwave radar.

[0032] S101: Determine the ambient light reference parameters based on the real-time ambient light parameters.

[0033] Among them, the ambient light reference parameters refer to the standardized set of illumination parameters obtained by spatiotemporally correcting the raw ambient light data collected in real time, which are used as the reference for calculating the dimming of bathroom mirror LEDs.

[0034] By analyzing real-time ambient light parameters, ambient light baseline parameters can be determined for convenient subsequent use.

[0035] S102: Determine the presence and location information of the human body based on human body sensing parameters.

[0036] Among them, the human presence status refers to the status indicator representing whether there is a human target in the space in front of the bathroom mirror. Human position information refers to the quantitative data representing the specific coordinate distribution of a human body in the three-dimensional space in front of the bathroom mirror, obtained after extraction and processing from the human body sensing parameters. The human body sensing parameters include both the human presence status and human position information.

[0037] The system retrieves information about the human body's presence and location by using human body sensing parameters, which is convenient for subsequent use.

[0038] S103: When the human body's state meets the preset human body existence baseline state, determine the human body mirror position relationship based on the human body position information.

[0039] The baseline state of human presence refers to the state identifier indicating the presence of a human body after the duration of human body detection meets a threshold. This baseline state is obtained through pre-input by the operator. The human body mirror position relationship refers to a comprehensive set of parameters describing the spatial position and dynamic behavior characteristics of the human body relative to the bathroom mirror.

[0040] By comparing the duration of the human body's existing state with the time threshold corresponding to the human body's existing baseline state, when the duration is greater than the time threshold, it indicates that the human body's existing state meets the preset human body existing baseline state. At this time, the human body's position information is analyzed to determine the human body's mirror position relationship, which is convenient for subsequent use.

[0041] S104: Determine the type of human movement based on the mirror position relationship of the human body.

[0042] Among them, the types of human body movements refer to the specific activities that the human body is performing in front of the bathroom mirror. The types of human body movements include leaving, approaching, washing (standing far away, moving slightly), applying makeup (standing close, moving slightly), shaving (standing very close, moving slightly), and observing (standing at a medium distance, moving slightly).

[0043] By analyzing the mirror position relationship of the human body, the type of human movement can be determined, which facilitates subsequent use.

[0044] S105: Determine the motion dimming requirement coefficient based on the type of human motion.

[0045] The motion dimming demand factor refers to a set of normalized parameters used to quantify the specific demands of an ongoing motion on the brightness and color temperature of the LED light source for a bathroom mirror.

[0046] By analyzing the types of human movements, the motion dimming requirement coefficient can be determined.

[0047] S106: Determine the light occlusion parameters by combining real-time ambient light parameters and human position information.

[0048] Among them, the light occlusion parameter refers to the parameter that characterizes the degree of light loss in the mirror area caused by human body occlusion.

[0049] By combining and analyzing real-time ambient light parameters with human position information, light occlusion parameters can be determined for convenient subsequent use.

[0050] S107: Combine ambient light reference parameters, motion dimming demand coefficient and light blocking parameters to determine target dimming parameters, and control the LED light source of the bathroom mirror to dim the output based on the target dimming parameters.

[0051] Among them, the target dimming parameters refer to the set of final control commands used to directly drive the LED light source output of the bathroom mirror.

[0052] By retrieving the brightness and color temperature values ​​corresponding to the ambient light reference parameters, and then retrieving the corresponding brightness adjustment coefficient and color temperature adjustment coefficient based on the dimming requirement coefficient, the product of the brightness value, brightness adjustment coefficient, and light blocking parameter corresponding to the ambient light reference parameters is calculated and used as the target dimming brightness value. The product of the color temperature value and color temperature adjustment coefficient corresponding to the ambient light reference parameters is then calculated and used as the target dimming color temperature value. The target dimming brightness value and target dimming color temperature are then combined as the target dimming parameter, and the target dimming parameter is output to the LED light source of the bathroom mirror for dimming output. This achieves refined and scene-specific adaptive dimming of the bathroom mirror light source, improving the lighting comfort and supplementary lighting accuracy of the bathroom mirror, thus enabling the smart bathroom mirror to meet the actual usage needs of users in different environments.

[0053] To further ensure the rationality of the ambient light reference parameters, it is necessary to perform further separate analysis and calculation on the ambient light reference parameters, which will be explained in detail through the steps shown below.

[0054] The method for determining ambient light reference parameters includes the following steps: S200: Retrieves ambient light intensity and ambient light color temperature values ​​based on real-time ambient light parameters.

[0055] Among them, the ambient light intensity value refers to the intensity value representing the combined illumination conditions of natural light and artificial ambient light in the current bathroom space. The ambient light color temperature value refers to the color temperature value representing the combined illumination conditions of natural light and artificial ambient light in the current bathroom space.

[0056] The ambient light intensity and color temperature values ​​can be retrieved in real time to facilitate subsequent use.

[0057] S201: Collect current time parameters and spatial reflection parameters of the space where the bathroom mirror is located.

[0058] The current time parameter refers to the system clock information acquired at the same moment as the real-time ambient light parameters are collected. The current time parameter is obtained by reading the real-time clock on the control circuit board inside the bathroom mirror.

[0059] Spatial reflectance parameters are quantitative indicators characterizing the light reflectance properties of the interior materials within the space where a bathroom mirror is located. The spatial reflectance parameters are determined by a light reflection detection module pre-installed on the bathroom mirror, which emits a detection light of known luminous flux and receives the intensity of the light signal returned after multiple reflections from various interfaces in the space. The ratio of the light signal intensity before and after reflection is calculated and used as the overall spatial reflectance parameter.

[0060] S202: Determine the time correction coefficient based on the current time parameter, and determine the reflection correction coefficient based on the spatial reflection parameter.

[0061] The time correction factor is a multiplier factor used to compensate for ambient light intensity over time. The reflection correction factor is a multiplier factor used to compensate for the spatial characteristics of ambient light intensity.

[0062] The time correction factor is obtained by inputting the current time parameter into a preset time coefficient database. Then, the spatial reflection parameter is calculated as a ratio to the preset standard reflectance, and the result is used as the reflection correction factor. The standard reflectance refers to the reflectance corresponding to a standard whiteboard, which is obtained after pre-input by the operator.

[0063] S203: Determine the comprehensive correction factor by combining the time correction factor and the reflection correction factor.

[0064] Among them, the comprehensive correction coefficient refers to the coefficient corresponding to the comprehensive influence of the time-period characteristics and spatial reflection characteristics of ambient light on the effective lighting conditions of the bathroom mirror.

[0065] The product of the time correction factor and the reflection correction factor is calculated, and the result is used as the comprehensive correction factor for convenient subsequent use.

[0066] S204: Calculate the product between the ambient light intensity value and the comprehensive correction factor, and use it as the corrected light intensity value.

[0067] Among them, the corrected light intensity value refers to the light intensity value after correcting the ambient light intensity value.

[0068] The product of the ambient light intensity value and the comprehensive correction coefficient is calculated, and the result is used as the corrected light intensity value for convenient subsequent use.

[0069] S205: Based on the combination of the corrected illuminance value and the ambient light color temperature value, it is used as the ambient light reference parameter.

[0070] Specifically, by combining the corrected illuminance value with the ambient light color temperature value to form a dataset, and using this dataset as the ambient light reference parameter, the accuracy of the obtained ambient light reference parameter is improved.

[0071] To further ensure the rationality of the human mirror position relationship, it is necessary to conduct a further separate analysis and calculation of the human mirror position relationship, which will be explained in detail through the following steps.

[0072] The method for determining the mirror position relationship of the human body includes the following steps: S300: Retrieves human body sensor location points and human body sensor values ​​based on human body location information.

[0073] Here, "human body sensing location point" refers to the specific position coordinates of each individual human body within the detection range of the bathroom mirror in a spatial coordinate system. "Human body sensing count" refers to the total number of people detected within the detection range by the bathroom mirror's human body sensor at the same sampling moment.

[0074] By retrieving human body sensing location points from human body location information and counting these points, the counting results are used as the human body sensing value for convenient subsequent use.

[0075] S301: Determine the human body sensing distance value and human body sensing angle value based on the human body sensing location point.

[0076] The human body sensing distance value refers to the quantified value of the spatial distance between each detected human body and the bathroom mirror surface. The human body sensing angle value refers to the quantified value of the spatial deviation of each detected human body from the preset reference direction of the bathroom mirror surface.

[0077] By analyzing and calculating the distance and direction between the human body sensor location point and the preset reference location point of the bathroom mirror, the calculated distance is used as the human body sensor distance value, and the angle between the direction and the preset perpendicular direction of the bathroom mirror is calculated to obtain the human body sensor angle value, which is convenient for subsequent use.

[0078] S302: Calculate and determine the average distance and the change in distance movement based on the human body sensing distance value.

[0079] The average distance refers to the statistical quantity obtained by averaging the human body sensing distance values ​​measured at multiple consecutive sampling times from the same human body sensing location. The distance movement change value refers to the statistical quantity obtained by performing time-series difference analysis on the human body sensing distance values ​​measured at multiple consecutive sampling times from the same human body sensing location.

[0080] The human body sensing distance values ​​at multiple consecutive sampling times are averaged, and the result is used as the average distance. Then, the deviation between the human body sensing distance values ​​at adjacent sampling times is calculated, and the quotient between the deviation and the corresponding time interval is used as the distance movement change value for subsequent use.

[0081] S303: Calculate and determine the average angle and angle movement changes based on the human body sensing angle value.

[0082] The average angle refers to the statistical quantity obtained by arithmetically averaging the human body sensing angle values ​​measured at multiple consecutive sampling times from the same human body sensing location point. The change in angle movement refers to the comprehensive change in the amplitude and direction of the human body's left-right sway relative to the mirror surface within the sampling time window.

[0083] The human body sensing angle values ​​at multiple consecutive sampling times are averaged, and the result is used as the average angle. Then, the deviation between the human body sensing angle values ​​at adjacent sampling times is calculated, and the quotient between the deviation and the corresponding time interval is used as the angle movement change for subsequent use.

[0084] S304: Determine the average position state by combining the average distance and the average angle, and determine the movement change state by combining the changes in distance movement and the changes in angle movement.

[0085] The average positional state refers to the average position of the human body relative to the center of the mirror in the polar coordinate system. The average positional state includes distance state and angle state. The distance state includes macro, near, medium-near, medium, medium-far, and far distance. The angle state includes center, slightly right, significantly right, slightly left, and significantly left.

[0086] Movement change state refers to the activity level and change pattern of human movement behavior within the sampling time window. Movement change state includes distance movement state and angular movement state. Distance movement state includes distance stationary, distance slight movement, and distance significant movement, while angular movement state includes angle stationary, angle slight movement, and angle significant movement.

[0087] The average distance and average angle are input into a preset position mean state determination database to obtain the average position state, and the distance movement change value and angle movement change value are input into a preset movement change determination database to obtain the movement change state, which is convenient for subsequent use.

[0088] The position uniformity determination database pre-stores a lookup table of different distance levels and their corresponding distance ranges, and also pre-stores a lookup table of different angle levels and their corresponding angle ranges. The movement change determination database pre-stores a lookup table of different distance movement levels and their corresponding distance movement ranges, and also pre-stores a lookup table of different angle movement levels and their corresponding angle movement ranges. Both the position uniformity determination database and the movement change determination database are pre-set by the operator.

[0089] S305: Determine if the human body sensor value is greater than 1. If yes, proceed to S306; if no, proceed to S309.

[0090] The system determines whether multiple people are within the detection range of the bathroom mirror by checking if the number of human body sensors is greater than 1.

[0091] S306: Select human body sensing location points by combining the average distance, average angle, distance movement change value and angle movement change value, and use them as the selection location points for primary personnel and secondary personnel.

[0092] The primary personnel selection location refers to the spatial coordinates of the personnel chosen from a pool of human body sensor locations who are considered to have priority in dimming decisions. The secondary personnel selection location refers to the set of other human body sensor locations besides the primary personnel.

[0093] When the number of human body sensors is greater than 1, it indicates that there are multiple human bodies within the detection range of the bathroom mirror. Therefore, by analyzing the average distance, average angle, distance movement change, angle movement change, and human body sensor location points, the primary and secondary human body selection locations can be obtained for subsequent use.

[0094] S307: The average position and movement change state corresponding to the selected position point of the main personnel shall be used as the camera position relationship of the main personnel, and the average position and movement change state corresponding to the selected position point of the secondary personnel shall be used as the camera position relationship of the secondary personnel.

[0095] The primary personnel mirror position relationship refers to the comprehensive set of parameters relating the primary personnel's spatial position and dynamic behavior characteristics relative to the bathroom mirror. The secondary personnel mirror position relationship refers to the comprehensive set of parameters relating the secondary personnel's spatial position and dynamic behavior characteristics relative to the bathroom mirror.

[0096] Defining the shot positions of key and secondary characters facilitates subsequent use.

[0097] S308: The camera position relationship of the main personnel and the camera position relationship of the secondary personnel are combined and used as the human body camera position relationship.

[0098] In this method, the accuracy of the obtained human body mirror position relationships is improved by combining the mirror position relationships of primary and secondary personnel to form a dataset, and using this dataset as the human body mirror position relationship.

[0099] S309: Directly use the average position and the state of movement and change as the mirror position relationship of the human body.

[0100] When the number of human body sensors is no greater than 1, it means that only one human body is within the detection range of the bathroom mirror. Therefore, the average position and movement change are directly used as the human body mirror position relationship to improve the accuracy of the obtained human body mirror position relationship.

[0101] To further ensure the rationality of the location points selected by key personnel and secondary personnel, it is necessary to conduct further separate analysis and calculation of the location points selected by key personnel and secondary personnel. The specific steps are explained in detail below.

[0102] The selection methods for the location points of key personnel and secondary personnel include the following steps: S400: Determine the average reference value by combining the average distance and the average angle.

[0103] Among them, the mean reference value refers to the quantitative reference value that characterizes the human body sensing location point in the static spatial dimension.

[0104] The distance reference ratio is calculated and used as the distance reference ratio. The cosine value corresponding to the average angle is calculated, and the product of the distance reference ratio and the cosine value of the average angle is calculated. The result is used as the mean reference value for convenient subsequent use.

[0105] The standard reference distance value refers to the pre-set standard reference distance, which is obtained after being pre-input by the operator.

[0106] S401: Determine the distance movement reference value based on the distance movement change value.

[0107] Among them, the distance movement reference value refers to the quantitative reference value that characterizes the movement of a human body in front of a bathroom mirror.

[0108] By inputting the distance movement change value into a preset distance movement reference database, a distance movement reference value is obtained for convenient subsequent use.

[0109] The closer the distance movement change value is to 0, the larger the corresponding distance movement reference value; the farther the distance movement change value is from 0, the smaller the corresponding distance movement reference value. The distance movement reference database pre-stores a lookup table of different distance movement change values ​​and their corresponding distance movement reference values, and is obtained after the operator has pre-entered the data.

[0110] S402: Determine the reference value for angle movement by comparing the changes in angle movement with the preset reference value for center movement.

[0111] Among them, the center movement change reference refers to the reference change of the center movement. The center movement change reference is the reference direction corresponding to the vertical direction of the bathroom mirror.

[0112] Angle movement reference value refers to the degree of conformity between the dynamic characteristics of human body angles and an ideal benchmark.

[0113] By comparing the direction of angle change in the angle movement with the preset center movement reference, a direction value is obtained. When the direction matches, a value of 1 is assigned, and when the direction does not match, a value of 0.3 is assigned. Then, the cosine value of the angle change value in the angle movement is calculated and used as the angle change value. Finally, the product value between the angle change value and the direction value is calculated and used as the angle movement reference value for convenient subsequent use.

[0114] S403: Calculate the product of the mean reference value, the distance movement reference value, and the angle movement reference value, and use it as the single-position reference value.

[0115] Among them, the single-position reference value refers to the reference value corresponding to the selection of each human body sensing position point.

[0116] The product of the mean reference value, the distance movement reference value, and the angle movement reference value is calculated, and the calculation result is used as a single-position reference value for convenient subsequent use.

[0117] S404: Sort the human body sensor positions from largest to smallest based on the single-position reference values, select the first-ranked human body sensor position as the primary human body sensor position, and select the other human body sensor positions as secondary human body sensor position.

[0118] Specifically, by sorting the single-position reference values ​​from largest to smallest, selecting the top-ranked human body sensor position point as the primary human body selection position point, and then using the human body sensor position points other than the primary human body selection position point as the secondary human body selection position points, the accuracy of the primary and secondary human body selection position points is improved.

[0119] To further ensure the rationality of human movement types, it is necessary to conduct further separate analysis and calculation of human movement types, which will be explained in detail through the steps shown below.

[0120] The methods for determining the type of human movement include the following steps: S500: Retrieves the average position and movement change status based on the human body mirror position relationship.

[0121] Among them, the average position and movement change status of the human body are retrieved through the human body mirror position relationship, which is convenient for subsequent use.

[0122] S501: Determine the position prediction action type based on the position average state.

[0123] Among them, position-predicted action type refers to the possible behavioral tendencies or action intentions inferred solely from the dimension of the human body's static spatial position.

[0124] By inputting the average position status into a preset position prediction action database, the position prediction action type is matched and obtained, which facilitates subsequent use.

[0125] The position prediction action database pre-stores a lookup table of different average position states and their corresponding position prediction action types, and is obtained through pre-input.

[0126] For example, the position prediction action database can be set as follows: when the average position is at a macro distance, center / slight right deviation / slight left deviation, the corresponding position prediction action type is shaving; when the average position is at a close distance, center / slight right deviation / slight left deviation, the corresponding position prediction action type is makeup / styling; when the average position is at a medium-close distance / medium distance / medium-long distance, center / slight right deviation / slight left deviation, the corresponding position prediction action type is adjusting clothes; and when the average position is at a far distance, large right deviation / large left deviation, the corresponding position prediction action type is passing by or other actions.

[0127] S502: Determine the predicted movement type based on the movement change status.

[0128] Among them, the predicted movement type refers to the possible behavioral tendencies or activity patterns inferred solely from the dimension of human dynamic movement characteristics.

[0129] By inputting the movement change status into a preset movement prediction action database, the movement prediction action type can be matched and obtained for convenient subsequent use.

[0130] The motion prediction database pre-stores a lookup table of different motion change states and their corresponding motion prediction types, and is obtained through pre-input.

[0131] For example, the motion prediction database can be set as follows: when the motion change state is stationary / minor distance movement and stationary / minor angle movement, the corresponding motion prediction motion type can be shaving or makeup making. When the motion change state is significant distance movement or significant angle movement, the corresponding motion prediction motion type can be tidying clothes.

[0132] S503: Combine the predicted motion type with the predicted motion type of position to determine the overall predicted motion type.

[0133] Among them, the predicted comprehensive action type refers to the comprehensive inference type that represents the user's current behavioral intention.

[0134] By matching the position-predicted action type corresponding to the same human body with the movement-predicted action type, and using the matching type as the predicted comprehensive action type, it is convenient for subsequent use.

[0135] S504: Determine whether there is only one estimated composite action type. If yes, proceed to S505; if no, proceed to S506.

[0136] In this process, by judging whether there is only one predicted comprehensive action type, it can be determined whether there is only one predicted comprehensive action type corresponding to a human body that can be directly used.

[0137] S505: Use the estimated composite movement type as the human movement type.

[0138] When there is only one estimated comprehensive action type, it means that there is only one estimated comprehensive action type corresponding to a human body that can be used directly. Therefore, the estimated comprehensive action type is used as the human body action type to improve the accuracy of the obtained human body action type.

[0139] S506: Retrieve the main severity value of a person based on the mirror position relationship of the human body.

[0140] Among them, the personnel importance value refers to the single-position reference value corresponding to the mirror position relationship of each human body.

[0141] By retrieving the corresponding single-position reference value from the human body's mirror position relationship and using it as the person's primary severity value, it is convenient for subsequent use.

[0142] S507: Determine the motion dimming requirement value based on the estimated comprehensive motion type.

[0143] Among them, motion dimming requirement value refers to the priority value required for dimming a certain estimated comprehensive motion type.

[0144] By inputting the estimated comprehensive motion type into the preset motion dimming database, the motion dimming requirement value is matched and obtained, which facilitates subsequent use.

[0145] The motion dimming database pre-stores a lookup table of different estimated comprehensive motion types and their corresponding motion dimming requirements. The motion dimming database is obtained after the operator pre-inputs the values.

[0146] For example, the motion dimming database can be set as follows: the estimated motion dimming requirement for the comprehensive motion type of shaving is 1.3; the estimated motion dimming requirement for the comprehensive motion type of makeup and styling is 1.5; the estimated motion dimming requirement for the comprehensive motion type of adjusting clothes is 1.1; and the estimated motion dimming requirement for other actions such as passing by is 0.7.

[0147] S508: Determine the type selection value by combining the motion dimming requirement value and the importance value of the personnel.

[0148] Among them, the type selection value refers to the priority response of each candidate predicted comprehensive action type in the final action type decision.

[0149] The product of the motion dimming requirement value and the personnel importance value is calculated, and the calculation result is used as the type selection value for convenient subsequent use.

[0150] S509: Sort the type selection values ​​from largest to smallest, select the predicted comprehensive action type corresponding to the type selection value with the highest sort value, and use it as the human action type.

[0151] In this method, the accuracy of the obtained human motion types is improved by sorting the type selection values ​​from largest to smallest and then selecting the predicted comprehensive motion type corresponding to the top-ranked type selection value.

[0152] To further ensure the rationality of the motion dimming demand factor, it is necessary to perform a further separate analysis and calculation of the motion dimming demand factor, which will be explained in detail through the steps shown below.

[0153] The method for determining the motion dimming demand factor includes the following steps: S600: Retrieves motion brightness adjustment coefficient and motion color temperature adjustment coefficient based on human motion type.

[0154] The brightness adjustment coefficient refers to the user's desired adjustment range for the LED light source output brightness under this action type. The color temperature adjustment coefficient refers to the user's desired adjustment range for the LED light source output color temperature under this action type.

[0155] Human motion types are input into a preset motion type adjustment database to obtain motion brightness and color temperature adjustment coefficients for convenient subsequent use. When the human motion type corresponds to static, fine-tuning operations, the corresponding motion brightness and color temperature adjustment coefficients are relatively large; when the human motion type corresponds to mid-range, conventional mirror viewing, the corresponding motion brightness and color temperature adjustment coefficients are moderate; and when the human motion type corresponds to long-distance mirror viewing, the corresponding motion brightness and color temperature adjustment coefficients are relatively small.

[0156] The motion type adjustment database pre-stores a table that corresponds to different human motion types and their brightness and color temperature adjustment coefficients. The motion type adjustment database is obtained after the operator pre-inputs the data.

[0157] S601: Determine the position brightness adjustment coefficient based on the average position status.

[0158] Among them, the brightness adjustment coefficient refers to the compensation or attenuation requirement of LED light source brightness caused by different spatial positions of the human body.

[0159] The position average status is input into a preset position coefficient mapping table to obtain the position brightness adjustment coefficient, which facilitates subsequent use.

[0160] The farther the distance and the larger the angle corresponding to the average position state, the larger the position brightness adjustment coefficient; conversely, the closer the distance and the smaller the angle corresponding to the average position state, the smaller the position brightness adjustment coefficient. The position coefficient mapping table pre-stores different average position states and their corresponding position brightness adjustment coefficients, and is obtained after pre-input by the operator.

[0161] S602: Determine the motion attenuation coefficient based on the motion change state.

[0162] Among them, the motion attenuation coefficient refers to the degree of influence of the dynamic movement behavior of a human body in front of the mirror on the dimming effect.

[0163] The motion attenuation coefficient is obtained by inputting the motion change status into a preset motion attenuation mapping table, which facilitates subsequent use.

[0164] The greater the change in distance and angle corresponding to the movement state, the greater the movement attenuation coefficient; conversely, the smaller the change in distance and angle corresponding to the movement state, the smaller the movement attenuation coefficient. The movement attenuation mapping table pre-stores different movement states and their corresponding movement attenuation coefficients, and is obtained after pre-input by the operator.

[0165] S603: Determine the brightness reference adjustment coefficient by combining the motion brightness adjustment coefficient and the position brightness adjustment coefficient.

[0166] Among them, the brightness reference adjustment coefficient refers to the reference coefficient that represents the brightness needs to be adjusted before considering the influence of human dynamic movement attenuation.

[0167] The sum of the motion brightness adjustment coefficient and the position brightness adjustment coefficient is calculated, and the calculation result is used as the brightness reference adjustment coefficient for convenient subsequent use.

[0168] S604: Calculate the product of the brightness reference adjustment factor and the moving attenuation factor and use it as the overall brightness adjustment factor.

[0169] Among them, the brightness comprehensive adjustment coefficient refers to the adjustment coefficient corresponding to the brightness adjustment required after taking into account the influence of human body dynamic movement attenuation.

[0170] The product of the brightness reference adjustment coefficient and the moving attenuation coefficient is calculated, and the result is used as the comprehensive brightness adjustment coefficient for convenient subsequent use.

[0171] S605: Calculate the product of the motion color temperature adjustment coefficient and the motion attenuation coefficient and use it as the overall color temperature adjustment coefficient.

[0172] Among them, the color temperature comprehensive adjustment coefficient refers to the adjustment coefficient that the color temperature needs to be adjusted after taking into account the influence of the dynamic movement and attenuation of the human body.

[0173] The calculation is performed by multiplying the motion color temperature adjustment coefficient and the motion attenuation coefficient, and the result is used as the overall color temperature adjustment coefficient for convenient subsequent use.

[0174] S606: Combine the overall brightness adjustment coefficient and the overall color temperature adjustment coefficient and use them as the motion dimming requirement coefficient.

[0175] Specifically, the brightness adjustment coefficient and the color temperature adjustment coefficient are combined. The combined dataset is then used as the motion dimming requirement coefficient for convenient subsequent use.

[0176] To further ensure the rationality of the light occlusion parameters, it is necessary to perform further separate analysis and calculation of the light occlusion parameters, which will be explained in detail through the following steps.

[0177] The method for determining light occlusion parameters includes the following steps: S700: Retrieves human body projection coordinates and human body contour parameters based on human body position information.

[0178] Human projection coordinates refer to the vertical projection position of the human body onto the plane of the bathroom mirror or the horizontal plane of the floor in front of the mirror. Human contour parameters refer to the quantitative descriptive data of the edge features of the human body. Human position information includes human projection coordinates and human contour parameters.

[0179] The human body's projection coordinates and contour parameters can be retrieved by using the human body's position information, which facilitates subsequent use.

[0180] S701: Determine the direction and intensity of the ambient light source based on real-time ambient light parameters.

[0181] Here, the ambient light source direction refers to the spatial orientation of the main ambient light source relative to the bathroom mirror. The ambient light source intensity value refers to the intensity of light from the main ambient light source at the mirror's location. Real-time ambient light parameters include both the ambient light source direction and the ambient light source intensity value.

[0182] The direction and intensity of the ambient light source can be retrieved by real-time ambient light parameters, which facilitates subsequent use.

[0183] S702: Calculate the shadow area of ​​the human body based on the human body contour parameters and the human body projection coordinates.

[0184] Among them, the human shadow area refers to the area of ​​shadow cast by a human body on the plane of the bathroom mirror or the space in front of the mirror under the illumination of ambient light.

[0185] By using the human body projection coordinates as the center, a simplified rectangular or elliptical region representing the human body's projected area on a horizontal plane is constructed according to the human body contour parameters; then, based on the direction of the ambient light source, a parallel projection is performed starting from this horizontal projection region along the opposite direction of the light incident direction, and its mapping area on the mirror plane is calculated and used as the human body's shadow area.

[0186] S703: Determine the mirror coverage area by combining the direction of the ambient light source and the shadow area of ​​the human body.

[0187] The mirror shadow coverage area refers to the actual shadow distribution range formed when the shadow area of ​​a human body is projected onto the plane of the bathroom mirror under the specific illumination direction of the ambient light source.

[0188] The coordinates of each boundary point in the human shadow area are transformed from the ground coordinate system or the spatial world coordinate system to the mirror coordinate system with the center of the mirror as the origin and the direction of the mirror normal as the Z-axis. Then, the projection line of each boundary point along the opposite direction of the incident light is calculated according to the direction vector of the ambient light source. The coordinates of the intersection point of the line and the equation of the mirror plane are solved. The closed polygon formed by connecting the intersection points corresponding to all boundary points in sequence is the mirror shadow coverage area.

[0189] S704: Determine the occlusion ratio by combining the area covered by the mirror reflection with the preset total area of ​​the bathroom mirror surface.

[0190] The occlusion ratio refers to the relative severity of human shadows obscuring the mirror surface. The total area of ​​the bathroom mirror refers to the overall area occupied by the bathroom mirror surface.

[0191] The area covered by the mirror reflection is calculated and used as the mirror reflection coverage area. Then, the ratio between the mirror reflection coverage area and the total area of ​​the bathroom mirror is calculated and used as the degree of obstruction ratio, which is convenient for subsequent use.

[0192] S705: Determine the light intensity occlusion adjustment value based on the occlusion degree ratio and the ambient light source intensity value, and use the light intensity occlusion adjustment value as the light occlusion parameter.

[0193] Among them, the light intensity occlusion adjustment value refers to the amount of ambient light loss received by the mirror due to human occlusion.

[0194] By calculating the product between the occlusion ratio and the ambient light intensity, and using the result as the light intensity occlusion adjustment value, and then using the light intensity occlusion adjustment value as the light occlusion parameter, the accuracy of the obtained light occlusion parameters is improved.

[0195] To further ensure the rationality of controlling the dimming output of the LED light source of the bathroom mirror based on the target dimming parameters, it is necessary to perform further separate analysis and calculation on the dimming output of the LED light source of the bathroom mirror based on the target dimming parameters. The specific steps are explained in detail below.

[0196] Reference Figure 3 After controlling the LED light source of the bathroom mirror to dim the output based on the target dimming parameters, the following steps are also included: S800: Determines the height and position of the human eye based on human body contour parameters.

[0197] Among them, the height position of the human eye refers to the vertical height coordinate of the human eye in the space in front of the bathroom mirror.

[0198] By extracting the bottom and top coordinates of the bounding rectangle of the human body from the human body contour parameters, the difference between the two is calculated to obtain the total height of the human body. Then, based on the proportion of eye height to total human body height in ergonomic statistics, the height position of the human eye is calculated for subsequent use.

[0199] S801: Determine the eye illumination adjustment value based on the height position of the human eye.

[0200] Among them, the eye illuminance adjustment value refers to the correction amount used to compensate for the output brightness of the LED light source based on eye height.

[0201] The geometric center height of the mirror in the vertical direction is determined, and the height deviation between the mirror and the height of the human eye is calculated. Then, based on the physical law that the illuminance decreases inversely with the square of the height deviation, the eye illuminance adjustment value is calculated for compensation, which is convenient for subsequent use.

[0202] S802: Determine the movement adjustment coefficient based on the movement change status.

[0203] Among them, the motion adjustment coefficient refers to the degree of influence of the dynamic movement behavior of the human body in front of the bathroom mirror on the amount of eye dimming feedback correction.

[0204] The movement adjustment coefficient is obtained by inputting the movement change status into a preset movement adjustment database for easy subsequent use.

[0205] The movement adjustment database pre-stores a lookup table of different movement change states and their corresponding movement adjustment coefficients. The larger the distance movement state or the larger the angle movement state, the larger the corresponding movement adjustment coefficient. The movement adjustment database is obtained after pre-input by the operator.

[0206] S803: Combines the eye illuminance adjustment value and the movement adjustment coefficient to determine the illuminance feedback parameters, and outputs the illuminance feedback parameters to the LED light source of the bathroom mirror.

[0207] The illuminance feedback parameter refers to the adjustment parameter used when adjusting the illuminance.

[0208] The dimming accuracy is improved by calculating the product between the eye illuminance adjustment value and the movement adjustment coefficient, using the calculation result as the illuminance feedback parameter, and then outputting the illuminance feedback parameter to the LED light source of the bathroom mirror.

[0209] To further ensure the rationality of the output illuminance feedback parameters before the LED light source of the bathroom mirror, it is necessary to perform further separate analysis and calculation on the output illuminance feedback parameters before the LED light source of the bathroom mirror, which will be explained in detail through the steps below.

[0210] The following steps are included before the output illuminance feedback parameters are sent to the LED light source of the bathroom mirror: S900: Collects the actual illuminance value of the area in front of the bathroom mirror and uses it as the feedback illuminance value.

[0211] The actual illuminance value refers to the actual brightness level achieved in the area in front of the mirror.

[0212] The actual illuminance value is collected by a light and color sensor module preset on the outside of the bathroom mirror frame or on the mirror surface.

[0213] S901: Retrieves target illuminance value based on target dimming parameters.

[0214] The target illuminance value refers to the luminance component in the target dimming parameter set. Target dimming parameters include the target illuminance value.

[0215] The target illuminance value can be retrieved by adjusting the target dimming parameters, which facilitates subsequent use.

[0216] S902: Calculate the difference between the target illuminance value and the feedback illuminance value and use it as the illuminance deviation value.

[0217] The illuminance deviation value refers to the difference between the target illuminance value and the feedback illuminance value.

[0218] The calculation is performed using the deviation value of the control, which facilitates subsequent use.

[0219] S903: Determine whether the illuminance deviation value is less than the preset illuminance deviation reference value. If yes, proceed to S904; if no, proceed to S905.

[0220] The illuminance deviation benchmark value refers to the maximum allowable deviation of illuminance under normal conditions. The illuminance deviation benchmark value is obtained through pre-input by the operator.

[0221] The system determines whether the illuminance feedback parameter needs adjustment by checking whether the illuminance deviation value is less than the preset illuminance deviation benchmark value.

[0222] S904: Continue to output illuminance feedback parameters to the LED light source of the bathroom mirror.

[0223] When the illuminance deviation value is less than the preset illuminance deviation benchmark value, it means that no adjustment of the illuminance feedback parameter is needed at this time, so the illuminance feedback parameter continues to be output to the LED light source of the bathroom mirror.

[0224] S905: Determine additional dimming parameters by combining the illuminance deviation value with the illuminance deviation reference value.

[0225] Among them, the dimming additional parameters refer to the adjustment parameters corresponding to the need for additional brightness adjustment.

[0226] When the illuminance deviation value is not less than the preset illuminance deviation reference value, it means that the illuminance feedback parameter needs to be adjusted. Therefore, the difference between the illuminance deviation value and the illuminance deviation reference value is calculated, and the calculation result is used as an additional dimming parameter.

[0227] S906: Based on the combination of dimming additional parameters and illuminance feedback parameters as dimming correction parameters, the dimming correction parameters are output to the LED light source of the bathroom mirror.

[0228] Among them, the dimming correction parameter refers to the adjustment parameter corresponding to the additional adjustment and correction of the brightness adjustment.

[0229] By calculating the sum between the dimming extra parameters and the illuminance feedback parameters, and using the calculation result as the dimming correction parameter, the dimming correction parameter is then output to the LED light source of the bathroom mirror to improve the dimming accuracy.

[0230] Based on the same inventive concept, embodiments of the present invention provide an environmental adaptive dimming system based on a bathroom mirror, comprising: The data acquisition module is used to collect real-time ambient light parameters, human body sensing parameters, current time parameters, spatial reflection parameters, feedback illuminance values, and feedback color temperature values. The memory stores a program for implementing an environmental adaptive dimming method based on a bathroom mirror as described above. The processor loads and executes programs stored in memory.

[0231] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0232] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. An environmental adaptive dimming method based on a bathroom mirror, characterized in that, include: Collect real-time ambient light parameters of the environment where the bathroom mirror is located and human body sensing parameters corresponding to the human body sensor preset on the bathroom mirror. Determine the ambient light reference parameters based on real-time ambient light parameters; The presence and location information of a human body are determined based on human body sensing parameters. When the human body's state meets the preset baseline state of human body existence, the mirror position relationship of the human body is determined based on the human body's position information. Determine the type of human movement based on the mirror position relationship of the human body; Determine the motion dimming requirement coefficient based on the type of human movement; The light occlusion parameters are determined by combining real-time ambient light parameters with human position information; By combining ambient light reference parameters, motion dimming demand coefficients, and light occlusion parameters, the target dimming parameters are determined, and the LED light source of the bathroom mirror is controlled to dim the output based on the target dimming parameters.

2. The environmental adaptive dimming method based on a bathroom mirror according to claim 1, characterized in that, Methods for determining ambient light reference parameters include: The ambient light intensity and color temperature values ​​are retrieved based on real-time ambient light parameters. Collect current time parameters and spatial reflection parameters of the space where the bathroom mirror is located; The time correction factor is determined based on the current time parameters, and the reflection correction factor is determined based on the spatial reflection parameters; The overall correction factor is determined by combining the time correction factor and the reflection correction factor; Calculate the product between the ambient light intensity value and the comprehensive correction factor, and use it as the corrected light intensity value; The modified illuminance value is combined with the ambient light color temperature value and used as the ambient light reference parameter.

3. The environmental adaptive dimming method based on a bathroom mirror according to claim 1, characterized in that, Methods for determining the mirror position relationship of the human body include: Retrieve human body sensor location points and human body sensor values ​​based on human body location information; The human body sensing distance and angle values ​​are determined based on the human body sensing location points. The average distance and the change in distance due to human body sensing distance are calculated and determined. The average angle and the change in angle movement are calculated and determined based on the human body sensing angle value. The average position is determined by combining the average distance and the average angle, and the movement change is determined by combining the changes in distance movement and the changes in angle movement. Determine if the human body sensor value is greater than 1; If so, the human body sensing location points are selected by combining the average distance, average angle, distance movement change, and angle movement change, and are used as the selection location points for primary and secondary personnel. The average position and movement change of the selected positions of the main personnel are used as the camera position relationship of the main personnel, and the average position and movement change of the selected positions of the secondary personnel are used as the camera position relationship of the secondary personnel. The camera position relationships of primary and secondary personnel are combined and used as the human body camera position relationships; If not, then the average position and the state of movement change are directly used as the human body mirror position relationship.

4. The environmental adaptive dimming method based on a bathroom mirror according to claim 3, characterized in that, The methods for selecting location points for key personnel and secondary personnel include: Determine the reference value of the mean by combining the average distance and the average angle; Determine the distance movement reference value based on the distance movement change value; The angle movement reference value is determined by comparing the changes in angle movement with the preset center movement reference value. Calculate the product of the mean reference value, the distance movement reference value, and the angle movement reference value, and use it as the single-position reference value; Based on the single-position reference values, the human body sensing position points are sorted from largest to smallest, and the human body sensing position point with the highest ranking is selected as the primary human body selection position point. The human body sensing position points other than the primary human body selection position point are selected as secondary human body selection position points.

5. The environmental adaptive dimming method based on a bathroom mirror according to claim 4, characterized in that, Methods for determining the types of human movements include: Based on the human body mirror position relationship, retrieve the average position status and movement change status; Determine the type of movement to be predicted based on the average position status; Determine the type of movement to be predicted based on the movement change status; The overall predicted action type is determined by combining the predicted action type based on the predicted position and the predicted movement. Determine whether there is only one type of predicted combined action; If so, the estimated composite movement type will be used as the human movement type; If not, the severity value of the person is retrieved based on the mirror position relationship of the human body; The required dimming value for the motion is determined based on the estimated overall motion type; The type selection value is determined by combining the motion dimming requirement value and the personnel importance value; Sort the types from largest to smallest based on the type selection value, and select the predicted comprehensive action type corresponding to the type selection value with the highest ranking as the human action type.

6. The environmental adaptive dimming method based on a bathroom mirror according to claim 3, characterized in that, Methods for determining the motion dimming demand factor include: The brightness adjustment coefficient and color temperature adjustment coefficient of the human body movement are retrieved based on the type of human movement. Determine the position brightness adjustment coefficient based on the average position status; Determine the motion attenuation coefficient based on the motion change state; The brightness reference adjustment coefficient is determined by combining the motion brightness adjustment coefficient and the position brightness adjustment coefficient; Calculate the product of the brightness reference adjustment factor and the motion attenuation factor, and use it as the overall brightness adjustment factor; Calculate the product of the motion color temperature adjustment coefficient and the motion attenuation coefficient, and use it as the overall color temperature adjustment coefficient. The brightness adjustment coefficient and the color temperature adjustment coefficient are combined and used as the dimming requirement coefficient.

7. The environmental adaptive dimming method based on a bathroom mirror according to claim 3, characterized in that, Methods for determining light occlusion parameters include: Retrieve human projection coordinates and human contour parameters based on human position information; Determine the direction and intensity of the ambient light source based on real-time ambient light parameters; Calculate the shadow area of ​​the human body based on human body contour parameters and human body projection coordinates; Determine the mirror coverage area by combining the direction of ambient light sources and the area of ​​human shadows; Determine the degree of obstruction by combining the area covered by the mirror reflection with the preset total area of ​​the bathroom mirror surface; The light intensity occlusion adjustment value is determined based on the occlusion ratio and the ambient light intensity value, and the light intensity occlusion adjustment value is used as the light occlusion parameter.

8. The environmental adaptive dimming method based on a bathroom mirror according to claim 7, characterized in that, After controlling the LED light source of the bathroom mirror to dim the output based on the target dimming parameters, the following is also included: Determine the height and position of the human eye based on human contour parameters; The eye illumination adjustment value is determined based on the height position of the human eye. Determine the movement adjustment coefficient based on the movement change status; The illuminance feedback parameters are determined by combining the eye illuminance adjustment value and the motion adjustment coefficient, and then the illuminance feedback parameters are output to the LED light source of the bathroom mirror.

9. The environmental adaptive dimming method based on a bathroom mirror according to claim 8, characterized in that, Before the output illuminance feedback parameters are sent to the LED light source of the bathroom mirror, the following steps are also included: Collect the actual illuminance value of the area in front of the bathroom mirror and use it as the feedback illuminance value; Retrieve the target illuminance value based on the target dimming parameters; Calculate the difference between the target illuminance value and the feedback illuminance value and use it as the illuminance deviation value; Determine whether the illuminance deviation value is less than the preset illuminance deviation reference value; If so, the illuminance feedback parameters will continue to be output to the LED light source of the bathroom mirror; If not, then combine the illuminance deviation value with the illuminance deviation reference value to determine the additional dimming parameters; The dimming additional parameters and illuminance feedback parameters are combined and used as dimming correction parameters, which are then output to the LED light source of the bathroom mirror.

10. An environmental adaptive dimming system based on a bathroom mirror, characterized in that, include: The data acquisition module is used to collect real-time ambient light parameters, human body sensing parameters, current time parameters, spatial reflection parameters, feedback illuminance values, and feedback color temperature values. The memory stores a program for implementing an environmental adaptive dimming method based on a bathroom mirror as described in any one of claims 1 to 9; The processor loads and executes programs stored in memory.