An automatic light control method and system based on environmental perception

By using environmental perception technology and a light control system based on electrically controlled dimming glass, combined with indoor and outdoor image data, the system identifies the positions of clothing and people, and adjusts the light blockage and angle, solving the problem that existing systems cannot adapt to indoor usage scenarios and achieving intelligent and user-friendly light control.

CN122239338APending Publication Date: 2026-06-19杭州谷优进出口有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
杭州谷优进出口有限公司
Filing Date
2026-03-24
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

Existing electronically controlled dimming glass light control systems only control light intensity based on outdoor light intensity, failing to adapt to the actual needs of indoor use scenarios, resulting in conflicts with users' activities such as drying clothes.

Method used

By using environmental sensing technology, image data of the outside of the glass is acquired, and the intensity and angle of sunlight are analyzed. Combined with image data of the inside of the glass, the location of clothing or people is identified, and the light blocking, angle and diffusion operations are adjusted to meet the indoor lighting needs.

Benefits of technology

It enables intelligent and user-friendly control of the light control system in different indoor scenarios, ensuring clothing drying, personal comfort and privacy protection, and improving the system's adaptability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122239338A_ABST
    Figure CN122239338A_ABST
Patent Text Reader

Abstract

This invention relates to an automatic light control method and system based on environmental perception, specifically in the field of glass light control technology. The method includes: acquiring image data of the outer side of the glass; analyzing the image data to determine sunlight intensity; determining sunlight angle parameters based on a sunlight spot positioning algorithm; determining the glass shading area and the sunlight-affected area based on the sunlight angle parameters; performing a light shading operation; acquiring image data of the inner side of the glass; analyzing the image data to determine clothing features; if clothing features are present, determining the clothing position; if the clothing position falls within the sunlight-affected area, not performing a light shading operation; if the clothing position does not fall within the sunlight-affected area, determining the light angle adjustment parameters using a light trajectory algorithm; and performing a light angle adjustment operation. This invention adapts to changes in actual indoor scene requirements, achieving intelligent glass light control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of glass light control technology, and in particular to an automatic light control method and system based on environmental perception. Background Technology

[0002] With the development of building intelligence, electronically controlled dimming glass, due to its ability to dynamically adjust light transmittance, is widely used in doors, windows, partitions and other scenarios. Its core function is to automatically perform shading operations based on the intensity of outdoor light.

[0003] Currently, mainstream electrochromic glass light control systems generally adopt an external sensing plus threshold triggering control architecture. By deploying photosensitive sensors or illuminance acquisition modules on the outer surface of the glass, the intensity data of sunlight is captured in real time and transmitted to the main control unit. The main control unit pre-stores a fixed shading intensity threshold. Once the detected light intensity value exceeds the threshold, it will automatically issue a dimming command to control the electrochromic layer or liquid crystal layer of the glass to change the light transmittance, so that the corresponding area of ​​the glass switches to a low-transmittance shading state.

[0004] Regarding the aforementioned technologies, existing electronically controlled dimming glass light control solutions rely solely on outdoor light intensity as the sole control criterion, without considering the actual usage scenarios on the inside of the glass. For example, if the balcony is located indoors and clothes are being dried near the window, the system will directly activate the shading function because the light intensity meets the standard, blocking natural sunlight and conflicting with the user's drying needs. Summary of the Invention

[0005] To address the problem that existing electronically controlled dimming glass light control solutions cannot adapt to the actual needs of indoor scenarios, this invention provides an automatic light control method and system based on environmental perception.

[0006] In a first aspect, the present invention provides an automatic light control method based on environmental perception, employing the following technical solution:

[0007] An automatic light control method based on environmental perception includes:

[0008] Step 1: In response to environmental sensing signals, acquire image data of the outside of the glass;

[0009] Step 2: Analyze the image data of the outside of the glass based on the image grayscale illumination intensity calibration mapping algorithm to determine the intensity of sunlight;

[0010] Step 3: When the sunlight intensity exceeds the preset shading intensity range, determine the sunlight angle parameters based on the sunlight spot positioning algorithm;

[0011] Step 4: Determine the glass shading area and the area affected by sunlight based on the angle parameters of sunlight;

[0012] Step 5: Control the electronically controlled dimming glass to perform light blocking operation based on the glass shading area;

[0013] Step 6: During the light blocking operation, acquire image data of the inside of the glass using an image acquisition device;

[0014] Step 7: Analyze the image data of the inside of the glass based on the object detection algorithm to determine the features of the clothing;

[0015] Step 80: If clothing features are present, obtain the location of the clothing;

[0016] Step 800: When the clothing falls into the area affected by sunlight, do not perform the light blocking operation;

[0017] Step 810: When the clothing position does not fall within the area affected by sunlight, input the clothing position and sunlight angle parameters, and determine the sunlight angle adjustment parameters through the light trajectory algorithm;

[0018] Step 811: Perform a light angle adjustment operation based on the light angle adjustment parameters.

[0019] By adopting the above technical solution, when clothing is detected in the area affected by sunlight, no light blocking operation is performed, ensuring the light requirements for drying clothes; when clothing is not in the area, the angle of the light is adjusted, which not only meets the indoor use of light, but also achieves a certain degree of sun shading function, making the light control more intelligent and user-friendly.

[0020] Optional, also includes:

[0021] Step 70: Determine the current figure's outline features based on the image data from the inside of the glass;

[0022] Step 71: Based on the current figure's outline features, find the preset sitting / lying posture features for receiving sunlight to determine the similarity of the movements;

[0023] Step 72: When the action similarity falls within the preset reliable similarity range, obtain the current character's position;

[0024] Step 73: When the current character's position is not within the area affected by sunlight, input the current character's position and the angle parameters of sunlight, and determine the light angle adjustment parameters through the light trajectory algorithm;

[0025] Step 74: Perform the light angle adjustment operation based on the light angle adjustment parameters.

[0026] By adopting the above technical solution, when a person is detected to be in a sitting or lying position receiving sunlight and not in the area affected by sunlight, it indicates that the person needs sunlight. At this time, by adjusting the angle of the light to allow the sunlight to shine on the person's location, the person can better enjoy the sunlight, while avoiding excessive light entering the room and causing discomfort. This further improves the adaptability of the light control system to actual indoor scenes and the user experience.

[0027] Optionally, it also includes a method for performing microscattering operations, the method comprising:

[0028] Step 75: Determine the coverage area of ​​the current person based on the current person's outline features;

[0029] Step 76: When the current character's coverage area is larger than the area affected by sunlight, determine the light compensation area, which is the part of the character's coverage area that exceeds the area affected by sunlight;

[0030] Step 77: Determine the light diffusion parameters based on the light compensation area and the angle parameters of the sunlight;

[0031] Step 78: Perform a light diffusion operation based on the light diffusion parameters.

[0032] By adopting the above technical solution, when the area covered by the person is larger than the area affected by sunlight, it means that some of the person's body cannot be directly exposed to sunlight. By determining the area to compensate for the light and performing light diffusion operations, more light can cover the area where the person is located, allowing the person to receive more sunlight. This further optimizes the distribution of indoor light, meets the user's light needs in different scenarios, and improves the practicality and flexibility of the light control system.

[0033] Optionally, it also includes a method for performing directional scattering of light, the method comprising:

[0034] Step 770: Determine the current number of characters based on their current positions;

[0035] Step 771: When the current number of characters is not the preset number of independent characters, determine the interval distance based on the current character's position;

[0036] Step 772: When the interval does not fall within the preset overlap distance range, divide the independent character area range based on the current character position;

[0037] Step 773: Determine the directional scattering parameters of light based on the range of the independent character area;

[0038] Step 774: Perform directional scattering operation based on directional scattering parameters.

[0039] By adopting the above technical solution, when there are multiple people in the room and the distance between them is not within the overlapping distance range, by dividing the area into independent areas for each person and performing directional light scattering operation, the light can be scattered to the area where each person is located, meeting the light needs of different people, avoiding light waste and uneven distribution, and further improving the accuracy of the light control system.

[0040] Optionally, it also includes a method for performing a light diffusion operation when the interval distance falls within the overlap distance range, the method comprising:

[0041] Step 7720: Determine the positions of the characters on both horizontal edges based on the current character position;

[0042] Step 7721: Determine the lateral coverage distance of the light based on the positions of the figures on both sides of the horizontal edge;

[0043] Step 7722: Determine the position of the character at the front vertical edge and the position of the character at the back vertical edge based on the current character position;

[0044] Step 7723: Determine the longitudinal coverage distance of the light based on the positions of the characters at the front and rear edges of the vertical axis;

[0045] Step 7724: Determine the light diffusion parameters based on the lateral and longitudinal coverage distances of the light rays;

[0046] Step 7725: Perform a light diffusion operation based on the light diffusion parameters.

[0047] By adopting the above technical solution, when the distance between people falls within the overlapping distance range, by determining the horizontal and vertical coverage distance of the light, and then determining the light diffusion parameters and performing the light diffusion operation, the light can be evenly covered in this area. This ensures that multiple people can obtain sufficient and uniform light when they are close to each other, avoiding the problem of insufficient or excessive light in some areas due to the concentration of people. This allows the light control system to provide good light control in such complex scene distribution of people, and enhances the system's adaptability to different indoor scenes.

[0048] Optionally, it also includes a method for performing glass frosting when the intensity of sunlight does not exceed the shading intensity range, the method comprising:

[0049] Step 30: Obtain sound data features from the inside of the glass;

[0050] Step 31: Search a preset environmental sound feature library using the sound data features from the inside of the glass to determine the characteristics of the water flow sound;

[0051] Step 32: When water flow acoustic features are present, analyze the water flow features to obtain the expected water flow velocity;

[0052] Step 33: When the expected water flow velocity falls within the preset continuous water flow velocity range, output the bathroom environment signal;

[0053] Step 34: Perform glass frosting operation in response to bathroom ambient signals.

[0054] By adopting the above technical solution, when a water flow sound within the continuous water flow velocity range is detected on the inside of the glass, it is determined to be a bathroom environment, and a glass frosting operation is performed to protect the privacy of the people inside. Even when the sunlight intensity does not require shading, the glass state can be adjusted according to the actual usage scenario, improving the user experience in different scenarios.

[0055] Optionally, it also includes a method for performing partial light transmission on the glass, the method comprising:

[0056] Step 350: Obtain sound data features from the outside of the glass;

[0057] Step 351: Search the environmental sound feature database using the sound data features outside the glass to determine the characteristics of the baby's crying sound;

[0058] Step 352: When there are bathroom environmental signals and baby crying sound characteristics, acquire human body contour boundary data inside the glass through infrared contour imaging technology;

[0059] Step 353: Determine the human face contour based on the human body contour boundary data inside the glass;

[0060] Step 354: Obtain the movement trajectory of the human face contour;

[0061] Step 355: Determine the stationary height of the human face based on the movement trajectory of the human face contour;

[0062] Step 356: Determine the boundary line of localized glass fogging based on the constant height of the human face;

[0063] Step 357: Perform a localized light transmission operation on the glass based on the localized fogging boundary line.

[0064] By adopting the above technical solution, when there is a bathroom environment signal and the baby's crying is detected, the outline of the human face and the movement trajectory on the inside of the glass are obtained, the boundary line of the local fogging of the glass is determined, and the local light transmission operation is performed. This allows outsiders to observe the baby's situation in the bathroom in a timely manner, ensuring the baby's safety, while also protecting the privacy of people inside the room. This makes the application of the light control system more flexible and safer in different scenarios.

[0065] Optionally, it also includes a method for not performing partial light transmission of the glass when there are bathroom environmental signals and characteristics of an infant's crying, the method comprising:

[0066] Step 3570: Determine the coordinates of the source of the crying sound based on the characteristics of the baby's crying sound;

[0067] Step 3571: Obtain image data of the crying source coordinates based on the crying source coordinates to obtain the infant's outline features;

[0068] Step 3572: When there are no infant outline features, output an abnormal crying sound signal;

[0069] Step 3573: When infant contour features are present, obtain adult contour features based on the image data outside the glass;

[0070] Step 3574: When adult outline features are present, output a guardian care signal;

[0071] Step 3575: In response to abnormal crying signals or caregiver signals, do not perform partial light transmission of the glass.

[0072] By employing the above technical solution, when an abnormal crying signal is detected, it may indicate that the crying is not coming from the infant or that there is another abnormal situation. In this case, not performing partial glass light transmission can avoid unnecessary privacy exposure. Conversely, when a guardian's monitoring signal is detected, it means that the infant is already being cared for by an adult, and there is no need to perform partial glass light transmission. This design allows the light control system to more rationally balance the needs of privacy protection and external observation while ensuring the infant's safety.

[0073] Optionally, it also includes a method for performing a defogging operation on the glass, the method comprising:

[0074] Step 340: When the expected water flow velocity does not fall within the range of continuous water flow velocity, the human body contour on the inside of the glass is obtained by infrared contour imaging technology;

[0075] Step 341: When there is no human body outline inside the glass, calculate the total length of time at the end of the bath;

[0076] Step 342: When the preset termination time threshold is reached at the end of the bath, perform the defogging operation on the glass.

[0077] By adopting the above technical solution, when the bathing is over and no human figure is detected on the inside of the glass within the termination time threshold, it means that the bathing activity has ended and no one has been in the bathroom for a period of time. At this time, the glass fogging operation can be deactivated, allowing the glass to return to its normal light transmission state, while also avoiding the waste of resources caused by the glass being in a fogged state for a long time.

[0078] Secondly, the present invention provides an automatic light control system based on environmental perception, which adopts the following technical solution:

[0079] An automatic light control system based on environmental perception includes:

[0080] The acquisition module is used to acquire image data of the outside and inside of the glass.

[0081] A memory for storing a program for an automatic light control method based on environmental perception, as described above;

[0082] The processor loads and executes programs from memory.

[0083] By adopting the above technical solution, the system can intelligently control the light of electrically adjustable glass by loading and executing a stored automatic light control method program based on the acquired image data of the inside and outside of the glass. The system can flexibly adjust the light transmittance and angle of light, and perform operations such as scattering and fogging, based on various environmental factors such as outdoor light intensity, indoor clothing drying conditions, and the posture and position of people, meeting the user's light needs in different scenarios while protecting privacy and ensuring security.

[0084] In summary, the present invention has at least one of the following beneficial technical effects:

[0085] 1. Breaking through the limitations of traditional light control systems that rely solely on outdoor light intensity, this system detects the characteristics and location of indoor clothing. When clothing is in areas affected by sunlight, it does not perform shading operations to ensure adequate sunlight for drying. When clothing is not in these areas, it uses a light trajectory algorithm to adjust the angle of the light to provide supplemental lighting, thus avoiding strong glare and increased energy consumption while meeting the natural drying needs of clothing.

[0086] 2. It can recognize the sitting or lying posture of people receiving sunlight indoors, and flexibly perform light angle adjustment, micro-scattering or directional scattering operations according to the position of the person and the coverage area. In single-person scenarios, it can accurately guide the light to the person's position, achieve zoned directional lighting in multi-person scattered scenarios, and achieve overall uniform lighting in multi-person dense scenarios, thereby improving the comfort and experience of sunbathing.

[0087] 3. Based on the characteristics of water flow sound, the system automatically determines the bathroom scene and performs glass frosting to protect user privacy; when the sound of a baby crying is detected, infrared imaging technology can be used to make the glass partially transparent, so that the caregiver can easily observe the baby's condition. At the same time, it can identify abnormal crying or situations where an adult is already taking care of the baby, avoiding unnecessary privacy exposure and taking into account both privacy protection and safety monitoring needs. Attached Figure Description

[0088] Figure 1 This is a flowchart of an automatic light control method based on environmental perception, as described in an embodiment of this application. Detailed Implementation

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

[0090] This invention discloses an automatic light control method based on environmental perception. (Refer to...) Figure 1 An automatic light control method based on environmental perception includes:

[0091] Step 1: In response to environmental sensing signals, acquire image data of the outside of the glass.

[0092] Environmental sensing signals refer to trigger signals collected and generated by glass-integrated sensor modules. These signals are triggered by changes in light intensity and are used to initiate the operation of automatic light control methods. The aforementioned sensor modules include photosensors, infrared sensors, and image acquisition devices.

[0093] Image data outside the glass refers to a collection of image information, including the distribution of outdoor sunlight, environmental scenery, and the direction of light propagation, acquired by an image acquisition device deployed on the outside of the glass.

[0094] Step 2: Analyze the image data on the outside of the glass based on the image grayscale illumination intensity calibration mapping algorithm to determine the intensity of sunlight.

[0095] Solar radiation intensity refers to the amount of solar radiation received per unit area, and is a parameter characterizing the strength of outdoor sunlight. When measured in lux (lx), it represents the illuminance in the visible light range and is suitable for determining shading needs related to indoor glare and human visual comfort. When measured in watts per square meter (W / ㎡), it represents the energy density of solar radiation across the entire wavelength range and is suitable for determining shading needs related to increased indoor temperature and ultraviolet radiation intensity.

[0096] The image grayscale illumination intensity calibration and mapping algorithm presented here is a machine vision-based technique. It first preprocesses the image, then uses an image semantic segmentation algorithm to extract the sky region (excluding buildings, trees, and other obstructions) from the grayscale image as the region of interest (ROI) for illumination features. The algorithm pre-collects the mean grayscale value of the ROI at the same time using a lux meter, along with the corresponding measured values ​​of visible light illuminance (lx) and full-band solar radiation density (W / m²). A multiple linear regression algorithm is then used to fit a quantitative conversion relationship between the mean grayscale value and the two light intensity parameters. Finally, the real-time extracted mean grayscale value of the ROI is substituted into the relationship obtained using the multiple linear regression algorithm to calculate the corresponding solar radiation intensity parameters. This is a common technique.

[0097] Step 3: When the intensity of sunlight exceeds the preset shading intensity range, determine the angle parameters of sunlight based on the sunlight spot positioning algorithm.

[0098] The shading intensity range refers to the threshold range of sunlight intensity pre-defined according to the indoor usage scenario. It is divided into two parameter dimensions: when using lux (lx) as the unit, the threshold range is set to [15000lx, 50000lx], which is suitable for judging visual comfort in general indoor scenarios such as homes and offices; when using watts per square meter (W / ㎡) as the unit, the threshold range is set to [200W / ㎡, 800W / ㎡], which is suitable for judging thermal comfort in scenarios such as high temperatures in summer and strong ultraviolet radiation.

[0099] The solar ray angle parameters refer to two geometric parameters characterizing the state of sunlight incident on glass, specifically including the solar ray incident angle and the solar ray azimuth angle. The solar ray incident angle is the angle between the direction of the solar ray and the normal direction of the glass plane. The solar ray azimuth angle is the angle between the projection of the solar ray onto the horizontal plane and a preset reference direction (such as due south).

[0100] When the intensity of sunlight exceeds the range of shading intensity, it indicates that the outdoor solar radiation intensity is too high. If the light enters the room directly, it will cause two problems. First, when the intensity exceeds the threshold in lux (lx), it will produce strong glare, affecting the visual comfort of the human body and interfering with indoor activities such as reading and working. Second, when the intensity exceeds the threshold in watts per square meter (W / ㎡), it will rapidly increase the indoor temperature, increase the energy consumption of air conditioning, and at the same time, excessive ultraviolet rays will accelerate the aging and fading of furniture and fabrics.

[0101] The solar spot localization algorithm here is a common technique based on machine vision and geometric modeling, which locates solar spots from images of the outside of the glass and calculates the incident angle parameters of the light rays. It will not be elaborated on further.

[0102] Step 4: Determine the glass shading area and the area affected by sunlight based on the angle parameters of sunlight.

[0103] The glass shading area refers to the specific location range on the outer surface of the glass where sunlight directly shines, calculated based on the angle parameters of sunlight.

[0104] The area affected by sunlight refers to the specific range of sunlight that is irradiated in an indoor space after passing through glass, calculated based on the angle parameters of sunlight.

[0105] The specific method for determining the glass shading area using the angle parameters of sunlight is as follows: establish a two-dimensional coordinate system on the outer surface of the glass: take the lower left corner of the glass as the origin, the horizontal direction to the right as the x-axis, and the vertical direction upward as the y-axis, and mark the length and width dimensions of the glass; substitute the incident angle and azimuth angle of sunlight into the geometric optical projection formula to calculate the range of positions where sunlight directly hits the outer surface of the glass, and this range is the final glass shading area.

[0106] The specific method for determining the area affected by sunlight using solar ray angle parameters is as follows: A three-dimensional coordinate system is established for the indoor space. The origin is the intersection of the inner side of the glass and the ground. The x-axis extends horizontally to the right, the y-axis extends vertically into the interior, and the z-axis extends vertically upwards. By acquiring the geometric parameters of the glass and combining them with the three-dimensional coordinate system, the incident angle and azimuth angle of the sunlight are converted into ray direction vectors in three-dimensional space. The coordinates of the boundary points of the candidate area for glass shading are extracted. For each boundary point, a straight line is extended along the ray direction vector, and the coordinates of the projection point of the extended ray direction vector inside the room are calculated. These projection point coordinates are then integrated to determine the coordinates of four indoor projection boundary points, forming a closed rectangular area as the area affected by sunlight. The geometric parameters of the glass here include the glass thickness, the vertical height between the inner side of the glass and the indoor ground, and the vertical installation tilt angle of the glass.

[0107] Step 5: Control the electronically controlled dimming glass to perform light blocking operation based on the glass shading area.

[0108] Electrochromic glass refers to smart dimming glass made using electrochromic technology. A transparent conductive film and an electrochromic layer are embedded inside the glass. The transmittance can be steplessly adjusted by applying a DC voltage signal from 0 to 5V, and it supports independent zone control according to the glass sub-region.

[0109] The light blocking operation refers to sending a voltage signal to the drive module corresponding to the shading area of ​​the electronically controlled dimming glass, controlling the light transmittance of the glass in that area to decrease from the normal 80% to 90% to below 10%, thereby weakening the intensity of sunlight and achieving a shading effect; the light transmittance of the glass in the non-shading area remains unchanged.

[0110] Step 6: When performing the light blocking operation, acquire image data of the inside of the glass through the image acquisition device.

[0111] Image data inside the glass refers to the collection of image information acquired in real time by an image acquisition device deployed inside the glass.

[0112] Step 7: Analyze the image data of the inside of the glass based on the object detection algorithm to determine the features of the clothing.

[0113] Clothing features refer to the unique visual characteristics of clothing in the image data from the inside of the glass that can be identified by the object detection algorithm. These specifically include contour features and texture features. Contour features are the circumscribed rectangular outline of the clothing when it is hanging or laid flat; texture features are the surface textures of the fabric, such as stripes, checks, or solid colors. The object detection algorithm used here is a lightweight deep learning-based algorithm, specifically the YOLO series or SSD algorithm, which is a common technique for identifying the contour and texture features of clothing in images from the inside of the glass.

[0114] Step 80: If clothing features are present, obtain the location of the clothing.

[0115] The position of clothing refers to the three-dimensional coordinate information in the three-dimensional coordinate system, which is obtained through the image data inside the glass, specifically the x-axis, y-axis and z-axis coordinate values ​​of the center point of the clothing outline.

[0116] Step 800: When the clothing falls into the area affected by sunlight, the light blocking operation is not performed.

[0117] When the clothing falls within the area affected by sunlight, it means that the clothing is within the range where sunlight can directly reach it and can meet the drying needs using natural light. In this case, there is no need to perform any light blocking operations on the glass sub-area corresponding to the clothing location, thus ensuring the lighting conditions for drying the clothing.

[0118] Step 810: When the clothing is not located in the area affected by sunlight, input the clothing position and sunlight angle parameters, and determine the sunlight angle adjustment parameters through the light trajectory algorithm.

[0119] If the clothing is not located in the area affected by sunlight, it means that the clothing cannot be directly exposed to sunlight. It is necessary to adjust the direction of light propagation to guide the sunlight to the location of the clothing.

[0120] Ray tracing algorithms are ray tracking algorithms built upon the geometric optics law of reflection. The core of the algorithm is a vector calculation model, which can deduce the propagation path of the reflected ray and the angle adjustment value of the reflecting surface based on the angle parameters of the incident ray and the coordinates of the target position. This algorithm model is a common technique and will not be elaborated upon further.

[0121] The light angle adjustment parameter refers to the parameter used to control the electrically adjustable reflective layer of the glass integration, which is calculated based on the light trajectory algorithm. Specifically, it includes the target rotation angle value of the reflective layer.

[0122] The specific method for obtaining the light angle adjustment parameters by using the position of clothing and the angle of sunlight is to convert the incident angle and azimuth angle of sunlight into three-dimensional vector coordinates of the incident light, and use the three-dimensional coordinates of the position of clothing as the coordinates of the target incident point of the light. The above two sets of parameters are input into the light trajectory algorithm model. The algorithm simulates the light propagation path based on the law of reflection (the incident angle equals the reflection angle) and calculates the angle value that the glass-integrated adjustable reflective layer needs to rotate.

[0123] Step 811: Perform a light angle adjustment operation based on the light angle adjustment parameters.

[0124] The light angle adjustment operation refers to sending a control signal to the drive motor of the glass-integrated electronically controlled adjustable reflective layer, driving the reflective layer to rotate according to the angle value in the light angle adjustment parameters, so that the sunlight is reflected and accurately shines on the clothes, thus meeting the supplementary lighting needs for drying clothes.

[0125] This also includes:

[0126] Step 70: Determine the current figure's outline features based on the image data from the inside of the glass.

[0127] The current human figure outline features refer to the set of visual features that characterize the shape of the human body in the room, extracted by the target detection algorithm of the image data inside the glass. Specifically, these features include the coordinates of the outline of the human figure's bounding rectangle, the aspect ratio of the outline, the tilt angle of the body's central axis, and the relative positional relationship between the head, limbs, and torso.

[0128] Step 71: Based on the current figure's outline features, find the preset sitting or lying posture features for receiving sunlight to determine the similarity of the movements.

[0129] The sitting or lying posture features refer to the standard posture template features of the human body in a sitting or lying position suitable for sunbathing, which are pre-entered into the algorithm model. Specifically, it includes two types of sub-features: sitting posture features (the angle between the body and the ground is 30° to 60°, the limbs are naturally extended, and the torso and head are naturally connected) and lying posture features (the angle between the body and the ground is 0° to 15°, and the whole body is in a horizontal and extended state).

[0130] Action similarity refers to the quantitative matching degree value obtained by matching the detected current human silhouette features with the features of a sitting or lying posture receiving sunlight.

[0131] Step 72: When the action similarity falls within the preset reliable similarity range, obtain the current character's position.

[0132] The reliable similarity range refers to the action similarity threshold range obtained from multiple experimental data to determine whether the current person's posture is a valid sunbathing posture.

[0133] The current position of a character refers to the x-axis, y-axis, and z-axis coordinates of the center of the current character's outline in the three-dimensional coordinate system of the indoor space.

[0134] When the similarity of the movements falls within the reliable similarity range, it indicates that the current posture of the person indoors is an effective sitting or lying posture for sunbathing, indicating a need to actively receive sunlight, and the subsequent light adaptation and control process needs to be initiated.

[0135] Step 73: When the current character's position is not within the area affected by sunlight, input the current character's position and the angle parameters of sunlight, and determine the adjustment parameters of the light angle through the light trajectory algorithm.

[0136] If the current character's position is not within the area affected by sunlight, it means that the current character is in an indoor area without direct sunlight and cannot receive sunlight directly. The default shading or light transmission of the glass is not enough to meet the character's sunbathing needs. The angle of the reflective layer needs to be adjusted to guide the sunlight to the character's position.

[0137] Step 74: Perform the light angle adjustment operation based on the light angle adjustment parameters.

[0138] When a light angle adjustment parameter is present, it indicates that the current lighting requirements are not being met, so the light angle adjustment operation is performed.

[0139] This also includes a method for performing microscattering operations, the method comprising:

[0140] Step 75: Determine the coverage area of ​​the current character based on the current character's outline features.

[0141] The current character coverage area refers to the three-dimensional spatial range occupied by the human body itself in the three-dimensional coordinate system of the indoor space, based on the current character's outline features. Specifically, it is the smallest cuboid area that wraps around the entire outline of the character, represented by the boundary coordinates of this cuboid (start and end of x-axis, start and end of y-axis, start and end of z-axis).

[0142] Step 76: When the area covered by the current character is larger than the area affected by sunlight, determine the area to compensate for the light.

[0143] The light compensation area refers to the part of the person's coverage area that extends beyond the area affected by sunlight.

[0144] If the area covered by the person is larger than the area affected by sunlight, it means that the sunlight shining through the glass into the room cannot completely cover the space occupied by the person. It can only illuminate part of the person's body and cannot meet the person's need to sunbathe their whole body. Therefore, it is necessary to expand the illumination range through micro-scattering.

[0145] Step 77: Determine the light diffusion parameters based on the light compensation area and the angle parameters of the sunlight.

[0146] Light diffusion parameters are parameters used to control the scattering state of electronically controlled dimming glass, calculated based on the light compensation area and the angle of sunlight. Specifically, they include scattering intensity, scattering angle, and scattering area range. Scattering intensity corresponds to the strength of light diffusion, scattering angle corresponds to the direction of light diffusion into the compensation area, and scattering area range corresponds to the boundary coordinates of the light compensation area.

[0147] Step 78: Perform a light diffusion operation based on the light diffusion parameters.

[0148] The light diffusion operation refers to sending a control signal to the partition drive module of the corresponding light compensation area in the electronically controlled dimming glass. Based on the light diffusion parameters, the state of the electrochromic layer and scattering layer of the glass in that area is adjusted so that sunlight is micro-scattered in that area, and the illumination range is precisely extended to the complete coverage area of ​​the current person, so that the person's whole body is evenly illuminated.

[0149] This also includes a method for performing directional scattering of light, the method comprising:

[0150] Step 770: Determine the current number of characters based on their current positions.

[0151] The current number of people refers to the total number of human targets identified by the target detection algorithm based on the image data inside the glass and determined by action similarity to have a sitting or lying posture for receiving sunlight.

[0152] Step 771: When the current number of characters is not the preset number of independent characters, determine the interval distance based on the current character's position.

[0153] The number of independent characters refers to the pre-defined threshold for the number of characters in a single-person, independent lighting scene. The default value is 1, meaning that there is no need to perform directional scattering partitioning operations in a single-person scene, but this step logic is triggered in a multi-person scene.

[0154] Interval distance refers to the minimum straight-line distance between the coverage areas of any two adjacent figures in a three-dimensional coordinate system of an indoor space.

[0155] Step 772: When the interval distance does not fall within the preset overlap distance range, divide the independent character area range based on the current character position.

[0156] The overlap distance range refers to the threshold range determined through multiple experiments, based on the effective directional illumination coverage radius of a single electrically adjustable reflective layer, to determine whether there is overlap or contiguous illumination range in the coverage areas of multiple figures. The default value is 0 to 20 cm. The electrically adjustable reflective layer used in this scheme has an effective illumination coverage radius of approximately 15 cm for a single directional scattering. When the interval between adjacent figures' coverage areas is less than 20 cm, the illumination range of a single reflective layer will simultaneously cover multiple figures, or the illumination ranges of multiple reflective layers will overlap, thus indicating a dense distribution of figures. When the interval is greater than 20 cm, the effective illumination range of a single reflective layer can independently cover the coverage area of ​​one figure, and the illumination ranges of multiple reflective layers will not overlap, thus indicating a dispersed distribution of figures.

[0157] The independent character area refers to the exclusive lighting area formed by each dispersed character, with its own coverage area as the core, and extending outwards. The boundary of this area is represented by specific coordinate values ​​in the three-dimensional coordinate system of the indoor space.

[0158] When the interval does not fall within the overlap range, it means that the spatial interval between adjacent characters exceeds the effective illumination coverage radius of a single electronically adjustable reflective layer. A single reflective layer can independently cover the coverage area of ​​a character, and the illumination ranges of different reflective layers will not overlap or interfere with each other. At this time, a dedicated independent character area range can be defined for each character's position.

[0159] Step 773: Determine the directional scattering parameters of light based on the range of the independent character area.

[0160] The directional light scattering parameters are core parameters customized for each individual character's area, used to control the scattering state of the electronically controlled dimming glass zones. Specifically, these include the directional scattering direction, directional scattering intensity, and directional scattering area boundary. The directional scattering direction matches the spatial coordinates of the area, pointing towards the center of the corresponding character's coverage area; the directional scattering intensity is adjusted according to the distance between the character and the glass; and the directional scattering area boundary is completely consistent with the coordinates of the individual character's area.

[0161] Step 774: Perform directional scattering operation based on directional scattering parameters.

[0162] The directional light scattering operation involves sending control signals to the partition drive modules in the electronically controlled dimming glass that correspond one-to-one with the area of ​​each individual character. Based on the directional light scattering parameters, the electrochromic layer and scattering layer of each partition are adjusted to make sunlight scatter in a directional micro-direction within each partition, accurately covering the corresponding individual character area. The scattering parameters of each partition are independently controlled, while non-target areas maintain their original state, thus meeting the personalized lighting needs in multi-character dispersed scenes.

[0163] This also includes a method for performing a light diffusion operation when the interval distance falls within the overlap distance range, the method comprising:

[0164] Step 7720: Determine the positions of the characters on both horizontal edges based on the current character position.

[0165] The positions of the figures on the horizontal edges refer to the three-dimensional coordinates of the center points of the outlines of the two figures located on the leftmost and rightmost sides of the three-dimensional coordinate system in the horizontal direction (x-axis direction) of the indoor space; among them, the leftmost figure is the figure with the smallest x-axis coordinate value, and the rightmost figure is the figure with the largest x-axis coordinate value.

[0166] Step 7721: Determine the horizontal coverage distance of the light based on the positions of the figures on both sides of the horizontal edge.

[0167] The horizontal coverage distance of the light refers to the total length of the horizontal illumination coverage calculated based on the positions of the figures on both sides of the horizontal edge. The specific value is the difference between the x-axis coordinate of the center point of the rightmost figure's outline and the x-axis coordinate of the center point of the leftmost figure's outline.

[0168] Step 7722: Determine the position of the character on the front vertical edge and the position of the character on the back vertical edge based on the current character position.

[0169] The longitudinal front edge position of a figure refers to the three-dimensional coordinates of the center point of the figure's outline closest to the inner surface of the glass in the longitudinal direction (y-axis direction, extending vertically into the room from the glass) of the three-dimensional coordinate system of the interior space, that is, the position of the figure with the smallest y-axis coordinate value.

[0170] The position of a figure on the longitudinal rear edge refers to the three-dimensional coordinates of the center point of the figure's outline, which is furthest from the inner surface of the glass in the longitudinal direction (y-axis direction, extending vertically into the room from the glass) of the three-dimensional coordinate system of the interior space, i.e., the position of the figure with the largest y-axis coordinate value.

[0171] Step 7723: Determine the longitudinal coverage distance of the light based on the position of the character at the front and rear edges of the longitudinal axis.

[0172] The longitudinal coverage distance of the light refers to the difference between the y-axis coordinate of the center point of the figure's outline at the rear longitudinal edge and the y-axis coordinate of the center point of the figure's outline at the front longitudinal edge.

[0173] Step 7724: Determine the light diffusion parameters based on the lateral and longitudinal coverage distances of the light rays.

[0174] Light diffusion parameters refer to the core control parameters used to achieve uniform illumination of densely populated areas, based on the lateral and longitudinal coverage distances of the light rays and the effective illumination coverage radius of the electrically adjustable reflective layer. Specifically, these include the overall diffusion range, diffusion intensity, and the collaborative adjustment angle of the reflective layer. The overall diffusion range is defined by the lateral and longitudinal coverage distances, determining the coordinate range of the rectangular illumination area. The diffusion intensity is adapted to the size of the coverage area to ensure uniform illumination over a large area. The collaborative adjustment angle of the reflective layer is calculated based on the center position of the lateral and longitudinal coverage distances, determining the target rotation angle of the reflective layer to ensure that the light covers the entire densely populated area.

[0175] Step 7725: Perform a light diffusion operation based on the light diffusion parameters.

[0176] This also includes a method for performing glass frosting when the intensity of sunlight does not exceed the shading intensity range, the method comprising:

[0177] Step 30: Obtain sound data features from the inside of the glass.

[0178] Sound data features inside the glass refer to the set of quantized features obtained by analyzing indoor sound signals collected by a sound pickup device deployed inside the glass through an audio feature extraction algorithm. Specifically, these features include the frequency distribution range, amplitude fluctuation pattern, duration, and signal spectrum characteristics of the sound, which are used to distinguish different indoor environmental sounds such as water flow, voice, and electrical appliance operation.

[0179] Step 31: Search the preset environmental sound feature library by using the sound data features inside the glass to determine the characteristics of the water flow sound.

[0180] An environmental sound feature library refers to a pre-built and stored database of common indoor environmental sound feature templates, which includes standard feature parameters for various sounds such as water flow sounds, daily conversation sounds, household appliance operation sounds, and door and window opening and closing sounds. Among them, the water flow sound feature template is subdivided and calibrated according to different water flow speeds and water flow patterns, and is used to match and compare with the sound data features collected from the inside of the glass.

[0181] Step 32: When water flow acoustic features are present, analyze the water flow features to obtain the expected water flow velocity.

[0182] The estimated water flow velocity refers to the estimated value of the water flow velocity derived from the acoustic model after matching the identified water flow acoustic features with the water flow acoustic templates in the environmental sound feature library. Specifically, it is the flow velocity corresponding to the volumetric flow rate of water per unit time.

[0183] Step 33: When the expected water flow velocity falls within the preset continuous water flow velocity range, output the bathroom environment signal.

[0184] The continuous water flow velocity range refers to the pre-calibrated flow velocity threshold range that matches the continuous water flow state during the operation of bathroom bathing equipment. This range is determined through a large amount of actual bathroom water flow measurement data and can effectively distinguish between continuous bathing water flow and water flow states in non-bathroom scenarios such as dripping water from clothes or short-term water flow for hand washing.

[0185] The bathroom environment signal indicates that when the expected water flow rate falls within the range of continuous water flow rates, the environment inside the glass should be a bathroom environment. This is because if undried clothes are dripping water from the corners, the water flow rate is different from the water flow rate corresponding to the bathing equipment in the bathroom.

[0186] Step 34: Perform glass frosting operation in response to bathroom ambient signals.

[0187] The glass frosting operation refers to sending a control signal to the drive module of the electronically controlled dimming glass to adjust the voltage parameters of the frosting layer inside the glass, so that the glass switches from the normal high light transmittance state to a uniformly frosted semi-transparent state. This operation can completely block the view from the outside of the glass while ensuring soft and transparent indoor light, thus achieving privacy protection in the bathroom scene. Moreover, the frosting state can automatically return to the normal light transmittance state as the bathroom environmental signal disappears.

[0188] This also includes a method for performing partial light transmission on glass, the method comprising:

[0189] Step 350: Obtain sound data features from the outside of the glass.

[0190] Sound data features outside the glass refer to the set of quantized features obtained by analyzing sound signals collected by a high-sensitivity sound pickup device deployed on the outside of the glass through an audio feature extraction algorithm. Specifically, these features include the frequency distribution range, amplitude fluctuation pattern, duration, and signal spectrum characteristics of the sound; they are used to identify sound features outside the glass.

[0191] Step 351: Search the environmental sound feature database using the sound data features outside the glass to determine the characteristics of the baby's crying sound.

[0192] The characteristics of an infant's crying sound refer to the standard feature template of an infant's crying sound that has been pre-recorded in the environmental sound feature database. The specific quantitative parameters include frequency range, amplitude fluctuation period, and sound intensity threshold. This feature template has been trained and calibrated by a large number of infant crying sound samples and can effectively distinguish an infant's crying sound from other children's noises, animal sounds, and other interfering sounds.

[0193] Step 352: When there are bathroom environmental signals and baby crying sound characteristics, acquire human body contour boundary data inside the glass using infrared contour imaging technology.

[0194] The human body contour boundary data inside the glass refers to the set of temperature difference boundary coordinates between the human body and the environment inside the glass, captured by infrared contour imaging technology (non-visible light acquisition mode). It only includes the x-axis (horizontal direction) and z-axis (height direction) boundary point coordinates of the human body contour.

[0195] When there are bathroom environment signals and baby crying sounds, it indicates that the inside of the glass is a bathroom usage scenario, and the baby outside is crying. The caregiver inside the bathroom needs to observe the baby. It is necessary to activate the local fogging operation, leaving a light-transmitting area for the head while protecting the caregiver's privacy, so as to achieve the goal of privacy shielding and baby observation.

[0196] Step 353: Determine the human face contour based on the human body contour boundary data inside the glass.

[0197] The human face contour refers to the contour region that conforms to the head features extracted based on the human body contour boundary data inside the glass. The criteria for determination are that the contour length-to-width ratio is 1:1.2 to 1:1.5 and the top is rounded.

[0198] Step 354: Obtain the movement trajectory of the human face contour.

[0199] The human facial contour movement trajectory refers to the sequence of coordinate changes formed by continuously collecting the z-axis (height direction) coordinate data of the center point of the human facial contour, which is used to determine the most frequently occurring height position of the face.

[0200] Step 355: Determine the stationary height of the human face based on the movement trajectory of the human face contour.

[0201] The height of the human face refers to the z-axis (height direction) coordinate value that appears most frequently in the movement trajectory of the human face contour. This height corresponds to the position where the guardian's face most often stays (such as the height of the face when standing). Even if the guardian bends over or turns around, this height is still the benchmark for facial movement. Determining the light-transmitting area in this way can avoid obstructed observation or privacy leakage caused by changes in posture.

[0202] Step 356: Determine the boundary line of localized fogging on the glass based on the constant height of the human face.

[0203] The boundary line of localized fogging on glass refers to the boundary line of a localized light-transmitting area on the glass surface, determined based on the normal height of a human face.

[0204] Step 357: Perform a localized light transmission operation on the glass based on the localized fogging boundary line.

[0205] The glass local light transmission operation refers to sending control signals to the partition drive module of the electronically controlled dimming glass to perform differentiated fogging control based on the local fogging boundary line of the glass.

[0206] This also includes a method for not performing partial glass light transmission when there are bathroom environmental signals and characteristics of an infant's crying, the method comprising:

[0207] Step 3570: Determine the coordinates of the source of the crying sound based on the characteristics of the baby's crying sound.

[0208] The coordinates of the source of the crying sound refer to the spatial coordinates of the baby's crying sound in a three-dimensional coordinate system outside the glass, obtained by analyzing and calculating the baby's crying sound signal collected from the outside of the glass using the phase difference localization method. Specifically, the phase difference localization method involves deploying two (or more) microphones on the outside of the glass to locate the baby's crying sound by phase difference: there is a time difference between the two microphones receiving the baby's crying sound; the phase difference of the sound is calculated based on this time difference, and then combined with the installation distance between the two microphones, the spatial coordinates of the source of the crying sound can be obtained through geometric calculations.

[0209] Step 3571: Obtain image data of the source coordinates of the crying sound to obtain the infant's outline features.

[0210] Infant contour features refer to a set of infant-specific features extracted by a feature fusion algorithm from a target area defined by the coordinates of the source of the crying sound, simultaneously collecting image data and infrared pyroelectric data of the area. Specifically, it includes infant visible light image contour features and infant infrared thermal radiation features, which can effectively avoid the problem of feature loss caused by blankets or obstacles.

[0211] Step 3572: When there are no infant outline features, output an abnormal crying sound signal.

[0212] An abnormal crying signal is a trigger signal generated by the system to determine that the baby is not in the effective observation area outside the glass when neither the visible light image contour features of the baby nor the infrared thermal radiation features of the baby are detected in the target area based on the coordinates of the crying source.

[0213] When there are no outline features of the infant, it means that the infant is either completely obscured by an obstacle or is not within the effective observation range outside the glass. In this case, the caregiver cannot see the infant through the glass, and the infant cannot see the caregiver. The operation of partial light transmission is meaningless and there is no need to open the light transmission area.

[0214] Step 3573: When infant contour features are present, obtain adult contour features based on the image data outside the glass.

[0215] Adult contour features refer to the set of appearance features of an adult outside the glass extracted by image recognition algorithms based on image data from the outside of the glass.

[0216] When an infant's outline is visible, it indicates that the infant is within the effective observation range outside the glass, and the guardian has a potential need to observe the infant through the glass. It is necessary to further determine whether the infant is being cared for by an adult before deciding whether to perform the partial light transmission procedure.

[0217] Step 3574: When adult outline features are present, output a guardian care signal.

[0218] The guardianship signal is a trigger signal generated by the system when both infant and adult outline features are present, used to determine that an adult is present to care for the infant.

[0219] When adult silhouette features are present, it indicates that the infant is within the direct care of an adult, and there is no need for a guardian inside the bathroom to observe through the glass; therefore, the need for partial light transmission is not met.

[0220] Step 3575: In response to abnormal crying signals or caregiver signals, do not perform partial light transmission of the glass.

[0221] When there are abnormal infant crying signals or guardian care signals, it means that the current scene does not meet the triggering conditions for partial light transmission operation. Either the infant is not in the effective observation area outside the glass, or the infant is already being cared for by an adult. Therefore, the glass is kept in a fogged state and partial light transmission operation is not performed.

[0222] This also includes a method for performing a defogging operation on the glass, the method comprising:

[0223] Step 340: When the expected water flow velocity does not fall within the range of continuous water flow velocity, the human body contour on the inside of the glass is obtained by infrared contour imaging technology.

[0224] The human body contour inside the glass refers to the outline and shape characteristics of the human body inside the glass bathing space, captured by infrared contour imaging technology.

[0225] When the expected water flow speed does not fall within the range of continuous water flow speed, it indicates that the water flow state in the bathing space has changed from continuous flow (such as water coming out of the shower head while bathing) to intermittent flow, weak flow, or no flow. This suggests that the user may have finished bathing, temporarily left the bathing space, or stopped using the water. At this time, it is necessary to further confirm whether there are still people in the space through human contour detection to avoid misjudging the bathing status.

[0226] Step 341: When there is no human body outline inside the glass, accumulate the length of bathing at the end.

[0227] The duration of the shower end refers to the continuous time from when the system detects the absence of a human body outline inside the glass. If a human body outline is detected again during the timekeeping process, the timer will be immediately reset and the human body presence determination will be triggered again. The timekeeping will only continue when there is no human body outline continuously.

[0228] When there is no human silhouette inside the glass, it indicates that no one is staying in the bathing space. Combined with the abnormal water flow condition mentioned earlier, this further confirms that the user has most likely finished the bathing process. However, in order to avoid the accidental triggering of scenarios where the user leaves briefly (such as to retrieve toiletries), it is necessary to further confirm by accumulating the time to improve the accuracy of the status determination.

[0229] Step 342: When the preset termination time threshold is reached at the end of the bath, perform the defogging operation on the glass.

[0230] The termination time threshold refers to a time parameter pre-defined based on daily bathing habits and privacy protection needs. This threshold can be customized and adjusted according to the user's usage scenario. Its core function is to reserve a buffer time for the user to leave briefly, balancing the convenience of automatic termination with privacy and security.

[0231] De-fogging the glass means sending a voltage reset signal to the drive module of the electronically controlled dimming glass, controlling the electrochromic layer or liquid crystal layer inside the glass to reset, so that the glass gradually returns from the fogged and light-blocking state to the transparent state.

[0232] When the shower time reaches the termination time threshold, it indicates that the user has completely finished showering and has no intention of returning to the shower space. There is no need for privacy protection in the shower space, and the misting cancellation operation will be automatically executed at this time.

[0233] Based on the same inventive concept, embodiments of the present invention provide an automatic light control system based on environmental perception.

[0234] An automatic light control system based on environmental perception includes:

[0235] The acquisition module is used to acquire image data of the outside and inside of the glass.

[0236] A memory for storing a program for an automatic light control method based on environmental perception;

[0237] The processor loads and executes programs from memory.

[0238] 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 automatic light control method based on environmental perception, characterized in that, include: Step 1: In response to environmental sensing signals, acquire image data of the outside of the glass; Step 2: Analyze the image data of the outside of the glass based on the image grayscale illumination intensity calibration mapping algorithm to determine the intensity of sunlight; Step 3: When the sunlight intensity exceeds the preset shading intensity range, determine the sunlight angle parameters based on the sunlight spot positioning algorithm; Step 4: Determine the glass shading area and the area affected by sunlight based on the angle parameters of sunlight; Step 5: Control the electronically controlled dimming glass to perform light blocking operation based on the glass shading area; Step 6: During the light blocking operation, acquire image data of the inside of the glass using an image acquisition device; Step 7: Analyze the image data of the inside of the glass based on the object detection algorithm to determine the features of the clothing; Step 80: If clothing features are present, obtain the location of the clothing; Step 800: When the clothing falls into the area affected by sunlight, do not perform the light blocking operation; Step 810: When the clothing position does not fall within the area affected by sunlight, input the clothing position and sunlight angle parameters, and determine the sunlight angle adjustment parameters through the light trajectory algorithm; Step 811: Perform a light angle adjustment operation based on the light angle adjustment parameters.

2. The automatic light control method based on environmental perception according to claim 1, characterized in that, Also includes: Step 70: Determine the current figure's outline features based on the image data from the inside of the glass; Step 71: Based on the current figure's outline features, find the preset sitting / lying posture features for receiving sunlight to determine the similarity of the movements; Step 72: When the action similarity falls within the preset reliable similarity range, obtain the current character's position; Step 73: When the current character's position is not within the area affected by sunlight, input the current character's position and the angle parameters of sunlight, and determine the light angle adjustment parameters through the light trajectory algorithm; Step 74: Perform the light angle adjustment operation based on the light angle adjustment parameters.

3. The automatic light control method based on environmental perception according to claim 2, characterized in that, It also includes a method for performing microscattering operations, the method comprising: Step 75: Determine the coverage area of ​​the current person based on the current person's outline features; Step 76: When the current character's coverage area is larger than the area affected by sunlight, determine the light compensation area, which is the part of the character's coverage area that exceeds the area affected by sunlight; Step 77: Determine the light diffusion parameters based on the light compensation area and the angle parameters of the sunlight; Step 78: Perform a light diffusion operation based on the light diffusion parameters.

4. The automatic light control method based on environmental perception according to claim 3, characterized in that, It also includes a method for performing directional scattering of light, the method comprising: Step 770: Determine the current number of characters based on their current positions; Step 771: When the current number of characters is not the preset number of independent characters, determine the interval distance based on the current character's position; Step 772: When the interval does not fall within the preset overlap distance range, divide the independent character area range based on the current character position; Step 773: Determine the directional scattering parameters of light based on the range of the independent character area; Step 774: Perform directional scattering operation based on directional scattering parameters.

5. The automatic light control method based on environmental perception according to claim 4, characterized in that, It also includes a method for performing a light diffusion operation when the interval distance falls within the overlap distance range, the method comprising: Step 7720: Determine the positions of the characters on both horizontal edges based on the current character position; Step 7721: Determine the lateral coverage distance of the light based on the positions of the figures on both sides of the horizontal edge; Step 7722: Determine the position of the character at the front vertical edge and the position of the character at the back vertical edge based on the current character position; Step 7723: Determine the longitudinal coverage distance of the light based on the positions of the characters at the front and rear edges of the vertical axis; Step 7724: Determine the light diffusion parameters based on the lateral and longitudinal coverage distances of the light rays; Step 7725: Perform a light diffusion operation based on the light diffusion parameters.

6. The automatic light control method based on environmental perception according to claim 1, characterized in that, It also includes a method for performing glass frosting when the intensity of sunlight does not exceed the shading intensity range, the method comprising: Step 30: Obtain sound data features from the inside of the glass; Step 31: Search a preset environmental sound feature library using the sound data features from the inside of the glass to determine the characteristics of the water flow sound; Step 32: When water flow acoustic features are present, analyze the water flow features to obtain the expected water flow velocity; Step 33: When the expected water flow velocity falls within the preset continuous water flow velocity range, output the bathroom environment signal; Step 34: Perform glass frosting operation in response to bathroom ambient signals.

7. The automatic light control method based on environmental perception according to claim 6, characterized in that, It also includes a method for performing partial light transmission through glass, the method comprising: Step 350: Obtain sound data features from the outside of the glass; Step 351: Search the environmental sound feature database using the sound data features outside the glass to determine the characteristics of the baby's crying sound; Step 352: When there are bathroom environmental signals and baby crying sound characteristics, acquire human body contour boundary data inside the glass through infrared contour imaging technology; Step 353: Determine the human face contour based on the human body contour boundary data inside the glass; Step 354: Obtain the movement trajectory of the human face contour; Step 355: Determine the stationary height of the human face based on the movement trajectory of the human face contour; Step 356: Determine the boundary line of localized glass fogging based on the constant height of the human face; Step 357: Perform a localized light transmission operation on the glass based on the localized fogging boundary line.

8. The automatic light control method based on environmental perception according to claim 7, characterized in that, It also includes a method for not performing partial light transmission on glass when there are bathroom environmental signals and characteristics of an infant's crying, the method comprising: Step 3570: Determine the coordinates of the source of the crying sound based on the characteristics of the baby's crying sound; Step 3571: Obtain image data of the crying source coordinates based on the crying source coordinates to obtain the infant's outline features; Step 3572: When there are no infant outline features, output an abnormal crying sound signal; Step 3573: When infant contour features are present, obtain adult contour features based on the image data outside the glass; Step 3574: When adult outline features are present, output a guardian care signal; Step 3575: In response to abnormal crying signals or caregiver signals, do not perform partial light transmission of the glass.

9. The automatic light control method based on environmental perception according to claim 6, characterized in that, It also includes a method for performing a defogging operation on the glass, the method comprising: Step 340: When the expected water flow velocity does not fall within the range of continuous water flow velocity, the human body contour on the inside of the glass is obtained by infrared contour imaging technology; Step 341: When there is no human body outline inside the glass, calculate the total length of time at the end of the bath; Step 342: When the preset termination time threshold is reached at the end of the bath, perform the defogging operation on the glass.

10. An automatic light control system based on environmental perception, characterized in that, include: The acquisition module is used to acquire image data of the outside and inside of the glass. A memory for storing a program of an automatic light control method based on environmental perception as described in any one of claims 1 to 9; The processor loads and executes programs from memory.