Transparent glass photosensitive dimming method, system and equipment capable of resisting instantaneous interference and medium
By employing a collaborative mechanism of dynamic benchmark maintenance and nonlinear mapping, the problem of instantaneous interference affecting photosensitive dimming systems in dynamic environments is solved, achieving smooth dimming and adaptive control, thereby improving user experience and device lifespan.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-17
- Publication Date
- 2026-04-07
AI Technical Summary
Existing photosensitive automatic dimming systems are susceptible to instantaneous light fluctuations in dynamic environments, causing the transparent glass to frequently switch light transmission levels, resulting in visual flickering, user discomfort, poor adaptability, and high maintenance costs.
A collaborative mechanism of dynamic benchmark maintenance, dual-threshold state machine judgment, S-shaped nonlinear mapping and asymptotic approximation output is adopted. The illumination signal is filtered and processed, the historical benchmark value is updated using a slow exponential smoothing algorithm, the dimming level change is generated by combining the nonlinear S-shaped mapping function, and the transparent glass is driven to perform stepless dimming through the asymptotic approximation mechanism.
It effectively suppresses transient interference, achieves smooth dimming, improves visual comfort, reduces false triggering rate, has strong adaptability, reduces maintenance needs, and extends equipment life.
Smart Images

Figure CN121806332A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of intelligent dimming technology, and relates to a photosensitive dimming method, system, device and medium for transparent glass based on dynamic reference and S-curve mapping to resist transient interference. It is applicable to scenarios that require adaptive adjustment of light transmittance, such as rail transit vehicle windows, intelligent building curtain walls, and automobile sunroofs. Background Technology
[0002] Existing photosensitive automatic dimming systems typically respond to ambient light based on fixed thresholds or simple moving average filtering. However, in dynamic operating environments (such as trains passing through tree-lined roads or vehicles driving through shaded areas under bridges), instantaneous light fluctuations (duration <300ms) can easily be misinterpreted as real environmental changes, causing the transparent glass to frequently switch its light transmission level, resulting in visual flicker, user discomfort, and even accelerated device aging.
[0003] In addition, the traditional approach has the following drawbacks: (1) It has weak anti-interference ability and cannot distinguish between instantaneous shadows and real lighting trend changes; (2) The dimming level changes abruptly, lacking a natural transition; (3) Fixed parameters are difficult to adapt to varying light conditions such as dawn and dusk, and cloudy and sunny weather, resulting in poor environmental adaptability; (4) Different installation locations require manual calibration to reset the threshold, resulting in high maintenance costs.
[0004] Therefore, there is an urgent need for an adaptive control method that can intelligently identify effective changes in illumination, suppress transient interference, and achieve seamless and smooth dimming. Summary of the Invention
[0005] To address the technical problems of dimming flicker, abrupt response, and poor adaptability caused by transient illumination interference in existing technologies, and to achieve highly comfortable, low-false-trigger, and adaptive stepless dimming control, this invention discloses a photosensitive dimming method for transparent glass that resists transient interference. The method includes the following steps: S1. Filter the raw illumination signal collected by the photosensitive sensor to obtain the filtered current illumination value; S2. Based on the slow exponential smoothing algorithm, the historical benchmark value is updated recursively using the current illumination value to obtain the updated historical benchmark value that characterizes the long-term trend of ambient illumination, and the relative rate of change of the current illumination value relative to the updated historical benchmark value is calculated. S3. Based on the current illumination value and the filtered illumination value of the previous sampling period, calculate the current illumination change amount and the current illumination change rate, and use a dynamic threshold state machine to determine whether the current ambient light change exceeds the instantaneous interference range based on the current illumination change amount and the current illumination change rate. S4. If the result is exceeded, then based on the relative rate of change, a nonlinear S-shaped mapping function is used to generate the dimming level change. S5. Update the target dimming level according to the change in dimming level, smooth the target dimming level, and drive the transparent glass to perform stepless dimming through a progressive approximation mechanism.
[0006] Further, in step S1, the original illumination signal collected by the photosensitive sensor is filtered to obtain the filtered current illumination value, including: S11. Store the collected raw illumination signal into a circular buffer, and extract the raw illumination signal of the sliding window size from the circular buffer for median calculation. S12. The median is smoothed using an exponentially weighted moving average filtering method to obtain the current illumination value.
[0007] Furthermore, the formula for calculating the current illuminance value is: ; in, This is the current illumination value. The median value. This is the illumination value from the previous cycle. This is the first smoothing coefficient.
[0008] Furthermore, in step S2, the formula for updating the historical baseline value is: ; The formula for calculating the relative rate of change is: ; in, This is the historical baseline value for the t-th sampling period. This is the current illumination value. This is the historical baseline value for the (t-1)th sampling period. This is the second smoothing coefficient; Let be the relative rate of change during the t-th sampling period.
[0009] Furthermore, in step S3, the dynamic threshold state machine includes a stable period and an unstable period; Calculate the difference between the current illumination value and the filtered illumination value of the previous sampling period to obtain the current illumination change; calculate the ratio of the current illumination change to the sampling period to obtain the current illumination change rate. During the stable period, when the current change in illumination is greater than or equal to the first change threshold and the current rate of change in illumination is greater than or equal to the first rate of change threshold, it is determined that the current change in ambient light exceeds the range of instantaneous interference and the system enters the unstable period. During the unstable period, if the current change in illumination within a continuous preset time is less than the second change threshold and the current change rate of illumination is less than the second change rate threshold, it is determined that the current change in ambient light has not exceeded the instantaneous interference range, and the system returns to the stable period. Wherein, the first change threshold is greater than the second change threshold, and the first change rate threshold is greater than the second change rate threshold.
[0010] Further, in step S4, the expression for the nonlinear sigmoid mapping function is: ; in, The maximum change in illumination is represented by k; the steepness coefficient is represented by k. This represents the change in dimming level. Let be the relative rate of change during the t-th sampling period.
[0011] Further, in step S5, the target dimming level is updated according to the change in dimming level, the target dimming level is smoothed, and the transparent glass is driven to perform stepless dimming through a progressive approximation mechanism, including: S51. Calculate the sum of the target dimming level and the dimming level change as the preliminary target dimming level, and perform exponential smoothing on the preliminary target dimming level to obtain the smoothed target dimming level. S52. Start the timer with a fixed period to control the target dimming level to gradually approach the smooth target dimming level with a step size δ. S53. Convert the final output dimming level into an analog voltage signal to drive the dimming execution unit of the transparent glass.
[0012] This invention also provides a light-transmitting glass photosensitive dimming system that resists transient interference, the system comprising a photosensitive sensor, a processor, and a dimming execution module.
[0013] Among them, the photosensitive sensor is used to collect the original light signal; The processor is configured to execute the aforementioned light-sensitive dimming method for transparent glass that resists transient interference; The dimming execution module is connected to the processor and is used to control the light transmittance of the transparent glass.
[0014] This invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned photosensitive dimming methods for transparent glass that resist transient interference, thereby solving the technical problems in the prior art such as dimming flicker, abrupt response, and poor adaptability caused by transient light interference.
[0015] This invention also provides a computer-readable storage medium storing a computer program that executes any of the above-described methods for resisting transient interference in light-transmitting glass photosensitive dimming, in order to solve the technical problems in the prior art such as dimming flicker, abrupt response, and poor adaptability caused by transient light interference.
[0016] Compared with existing photosensitive dimming technologies, this invention, through collaborative mechanisms such as dynamic benchmark maintenance, dual-threshold state machine judgment, S-shaped nonlinear mapping, and asymptotic approximation output, can achieve the following beneficial effects: 1. The method of the present invention has strong anti-interference ability and can filter out most transient interferences with a duration of <300ms (such as tree shadows and flashes of light). 2. Dimming process acceleration ≤ 0.5 levels / second 2 The transitions are seamless and the response is smooth and natural, which can improve visual comfort. 3. The method of the present invention requires no manual calibration, has strong adaptability, and can adapt to operate within the range of 10 to 100,000 lux; 4. The algorithm of this invention has low complexity, can run in real time on embedded platforms such as RK3588, has high computational efficiency, and has low CPU usage; 5. This method can reduce the number of ineffective dimming cycles, reduce wear on the actuator, and extend the equipment's lifespan. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart of the photosensitive dimming method for transparent glass to resist transient interference according to the present invention; Figure 2 This is a diagram showing the transition between the stable and unstable periods in a dynamic threshold state machine. Figure 3 The graph shows the nonlinear sigmoid mapping function. Figure 4 This is a schematic diagram of the transparent glass photosensitive dimming system for resisting transient interference according to the present invention; Figure 5 This is a diagram of the processor's architecture. Among them, 41 is a photosensitive sensor; 42 is a processor; 43 is a dimming execution module; 420 is a filtering unit; 421 is a historical reference value update unit; 422 is a relative change rate calculation unit; 423 is an illumination change calculation module; 424 is a status judgment unit; 425 is a dimming level judgment module; and 426 is a smoothing processing unit. Detailed Implementation
[0019] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0020] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. This application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, in the absence of conflict, the following embodiments and features of the embodiments can be combined with each other. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] This invention discloses a photosensitive dimming method for transparent glass that resists transient interference. See [link to relevant documentation]. Figure 1 As shown, the method includes the following steps: S1. Filter the raw illumination signal collected by the photosensitive sensor to obtain the filtered current illumination value; S2. Based on the slow exponential smoothing algorithm, the historical benchmark value is updated recursively using the current illumination value to obtain the updated historical benchmark value that characterizes the long-term trend of ambient illumination, and the relative rate of change of the current illumination value relative to the updated historical benchmark value is calculated. S3. Based on the current illumination value and the filtered illumination value of the previous sampling period, calculate the current illumination change amount and the current illumination change rate, and use a dynamic threshold state machine to determine whether the current ambient light change exceeds the instantaneous interference range based on the current illumination change amount and the current illumination change rate. S4. If the result is exceeded, then based on the relative rate of change, a nonlinear S-shaped mapping function is used to generate the dimming level change. S5. Update the target dimming level according to the change in dimming level, smooth the target dimming level, and drive the transparent glass to perform stepless dimming through a progressive approximation mechanism.
[0022] In one embodiment, step S1 involves filtering the raw illumination signal collected by the photosensor to obtain the filtered current illumination value, including: S11. Store the collected raw illumination signal into a circular buffer, and extract the raw illumination signal of the sliding window size from the circular buffer for median calculation.
[0023] In practice, median calculation can eliminate pulse interference (such as momentary shadows). In addition, the sliding window size can be set to 20 to extract the median of the 20 most recent original illumination signals, which can ensure real-time performance.
[0024] S12. The median is smoothed using the Exponentially Weighted Moving Average (EWMA) filtering method to obtain the current illumination value. The formula for calculating the current illumination value is: ; in, This is the current illumination value. The median value. This is the illumination value from the previous cycle. This is the first smoothing coefficient, with a value range of (0, 1).
[0025] More specifically, this first smoothing coefficient is used to control the weight of historical data and current sampled data in the filtering result. A value closer to 1 indicates that the filter is more sensitive to the new sampled value; a value closer to 0 indicates that the filter is smoother, but the response delay will increase. In implementing this invention, the appropriate filter is selected... This is used to smooth out random noise and output a stable current illumination value.
[0026] In one embodiment, the update formula for the historical baseline value in step S2 is: ; The formula for calculating the relative rate of change is: ; in, This is the historical baseline value for the t-th sampling period, used to characterize the long-term, stable light level in the environment; This is the current illumination value. This is the historical baseline value for the (t-1)th sampling period. This is the second smoothing coefficient, with a value ranging from 0.01 to 0.1. It is used to ensure that the historical benchmark only slowly tracks the long-term trend of ambient light and is not sensitive to short-term fluctuations. Let be the relative rate of change during the t-th sampling period.
[0027] In practice, the second smoothing coefficient can enable the quasi-slow adaptation to environmental changes and avoid over-responding to short-term fluctuations. In this invention, the value is set to 0.05.
[0028] By calculating the relative rate of change This can eliminate the influence of absolute illumination values and enhance the algorithm's adaptability to different lighting environments.
[0029] In one embodiment, see Figure 2 As shown, in step S3, the dynamic threshold state machine includes a stable period and an unstable period. The stable period can correspond to a high threshold, i.e., a change ≥ 10 lux, a relative change rate ≥ 50 lux / s, ignoring small fluctuations. The unstable period can correspond to a low threshold, i.e., 10 lux ≥ change ≥ 5 lux, and 50 lux / s ≥ change rate ≥ 20 lux / s, sensitive to changes.
[0030] Specifically, the state transition process of the dynamic threshold state machine is as follows: Calculate the difference between the current illumination value and the filtered illumination value of the previous sampling period to obtain the current illumination change. ; Calculate the ratio of the current change in illumination to the sampling period to obtain the current rate of change in illumination V; During the stable period, when the current change in illumination... ≥ First change threshold And the current rate of change of illumination V is greater than or equal to the first rate of change threshold. When the ambient light change exceeds the range of instantaneous interference, the system enters a non-stable period. During the unstable period, if the change in current illumination over a continuously preset time period is... <Second change threshold And the current rate of change of illumination V is less than the second rate of change threshold. When the current ambient light change is determined to be within the range of instantaneous interference, the system returns to a stable state. Wherein, the first change threshold is greater than the second change threshold, the first change rate threshold is greater than the second change rate threshold, and the preset time T is greater than or equal to 3 seconds, for example... Figure 2 As shown, the preset time can be set to 5 seconds.
[0031] More specifically, during the stabilization period, without changing the flag bit or calculating new dimming levels, the system will maintain the current dimming level and the smooth output module will continue to operate. However, since the actual output dimming level remains stable, the final output AC power should remain unchanged.
[0032] During the unstable period, the flag is set to true, TR is input, and the new dimming level is calculated using the S-curve mapping algorithm. Rt is input into the S-shaped function to obtain the dimming level change ΔD, and then a new preliminary target level is calculated. This dimming level change is exponentially smoothed, and an asymptotic approximation mechanism is activated, so that the actual output level gradually approaches the target level in small steps. Finally, it is converted into a DAC control signal, and the corresponding AC voltage is output to drive the dimming device.
[0033] In addition to the stable and unstable states, the dynamic threshold state machine also has other states. These other states are used to handle uncertain and changing scenarios and complement the stable and unstable states. Examples include slow brightness drift or fluctuations that repeatedly oscillate around the threshold. In these states, the system adopts a more conservative strategy to avoid erroneous actions.
[0034] In one embodiment, in step S4, the expression for the nonlinear sigmoid mapping function (a variant of the sigmoid function) is: ; in, The maximum change in illumination is represented by a value ranging from 1.5 to 3.0; k is the steepness coefficient, ranging from 3.0 to 6.0. This represents the change in dimming level. The curve of the nonlinear sigmoid mapping function, representing the relative rate of change during the t-th sampling period, is shown below. Figure 3 As shown. In the implementation of this invention, k can be set to 4.0. The value is set to 2.5 to ensure a nonlinear response that is smooth for small changes and sensitive for large changes.
[0035] In one embodiment, step S5 involves updating the target dimming level based on the dimming level change, smoothing the target dimming level, and driving the transparent glass to perform stepless dimming via a progressive approximation mechanism, including: S51. Calculate the target dimming level With the dimming level change The sum of these values serves as the initial target dimming level. The initial target dimming level Exponential smoothing is performed to obtain the smoothed target dimming level. ; S52. Start the timer at a fixed period to control the target dimming level. The target dimming level is gradually approached with a step size δ. ; S53. Convert the final output dimming level into an analog voltage signal to drive the dimming execution unit of the transparent glass.
[0036] In practice, the timer period can be set to, for example, 100ms, δ≤ 0.1 levels / step, and the step size can be selected as 0.05 levels, and the acceleration of the dimming process should not exceed 0.5 levels / second. 2 To gradually approach the target level and achieve seamless dimming, the output is finally converted into a DAC control signal.
[0037] Based on the same inventive concept, this invention also provides a translucent glass photosensitive dimming system resistant to transient interference, as described in the following embodiments. Since the principle of the translucent glass photosensitive dimming system resistant to transient interference is similar to that of the translucent glass photosensitive dimming method resistant to transient interference, the implementation of the translucent glass photosensitive dimming system resistant to transient interference can refer to the implementation of the translucent glass photosensitive dimming method resistant to transient interference disclosed in the above embodiments, and will not be repeated. As used below, the terms "unit" or "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0038] Figure 4 This is a structural block diagram of a transparent glass photosensitive dimming system for resisting transient interference disclosed in an embodiment of the present invention, as shown below. Figure 4 As shown, the system includes a photosensor 41, a processor 42, and a dimming execution module 43. The structure will be described below.
[0039] Among them, the photosensitive sensor 41 is used to collect the original light signal; Processor 42 is configured to execute the above-described light-sensitive dimming method for transparent glass that resists transient interference; The dimming execution module 43 is connected to the processor 42 and is used to control the light transmittance of the light-transmitting glass.
[0040] Furthermore, the processor is an embedded chip that supports real-time execution of the method on an RK3588 or equivalent computing platform, with a CPU utilization rate of less than 15%.
[0041] Furthermore, see Figure 5 As shown, the processor 42 is equipped with a filtering unit 420, a historical reference value update unit 421, a relative change rate calculation unit 422, an illumination change calculation module 423, a status judgment unit 424, a dimming level judgment module 425, and a smoothing processing unit 426.
[0042] The filtering unit 420 is used to filter the original illumination signal collected by the photosensitive sensor to obtain the filtered current illumination value. The historical baseline update unit 421 is used to recursively update the historical baseline value based on the current illumination value using the slow exponential smoothing algorithm, so as to obtain the updated historical baseline value used to characterize the long-term trend of ambient illumination. The relative change rate calculation unit 422 is used to calculate the relative change rate of the current illumination value relative to the updated historical reference value; The illumination change calculation module 423 is used to calculate the current illumination change amount and the current illumination change rate based on the current illumination value and the filtered illumination value of the previous sampling period. The state judgment unit 424 is used to determine whether the current ambient light change exceeds the instantaneous interference range based on the current light change amount and the current light change rate through a dynamic threshold state machine. The dimming level judgment module 425 is used to generate the dimming level change amount based on the relative change rate by using a nonlinear S-shaped mapping function if the judgment exceeds the limit. The smoothing processing unit 426 is used to update the target dimming level according to the dimming level change and to smooth the target dimming level.
[0043] Furthermore, the light-transmitting glass is electrochromic glass, liquid crystal dimming glass, or suspended particle device glass.
[0044] Compared with existing photosensitive dimming technologies, this invention achieves the following verifiable technical effects through a collaborative mechanism involving dynamic benchmark maintenance, dual-threshold state machine judgment, S-shaped nonlinear mapping, and asymptotic approximation output: 1. Effectively suppresses transient interference: This invention employs median filtering combined with a slow historical benchmark ( With a dual-threshold state machine based on the amount of light change (ΔL) and the rate of change (V), the system can distinguish between instantaneous light fluctuations lasting less than 300 ms (such as tree shadows and car headlight flicker) and real ambient light trend changes, and the measured false trigger rate is reduced by more than 95%.
[0045] 2. The dimming process is smooth and natural: By limiting the dimming level variation (|ΔD| ≤ 2.5) through an S-shaped mapping function, and combining it with target level exponential smoothing (e.g., α = 0.7) and a progressive approximation mechanism with a 100 ms period and 0.05 levels / step, the dimming acceleration is controlled to be ≤ 0.5 levels / second. 2 Within a certain range, avoids abrupt changes that are perceptible to the human eye, thus improving visual comfort.
[0046] 3. No manual calibration required, highly adaptable: relative rate of change The introduction of this technology eliminates the dependence on absolute illumination values, enabling the algorithm to work stably in the range of 10 lux (nighttime) to 100,000 lux (midday light), making it suitable for various lighting scenarios such as dawn and dusk, sunny and cloudy days, and indoor and outdoor lighting, without the need to reset the threshold for the installation location.
[0047] 4. Low computational resource consumption and easy deployment: All processing steps in this invention involve only lightweight filtering, comparison, and table lookup operations. It can run in real time on embedded processors with a main frequency of 1.8 GHz or higher (such as RK3588) with a cycle of 100 ms. The measured CPU utilization rate is less than 15%, which meets the power consumption and cost-sensitive application requirements of rail transit, intelligent buildings, etc.
[0048] 5. Extend the lifespan of dimming devices: By filtering out invalid fluctuations through a state machine, the dimming action is triggered only after a valid change in ambient light is confirmed. In actual tests on typical urban rail lines, the average number of dimming operations per day is reduced by more than 60%, significantly reducing the driving fatigue and aging rate of electrochromic or liquid crystal dimming glass.
[0049] In this embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned photosensitive dimming methods for transparent glass that resist transient interference.
[0050] Specifically, the computer device can be a computer terminal, a server, or a similar computing device.
[0051] In this embodiment, a computer-readable storage medium is provided, which stores a computer program that performs any of the above-described methods for photosensitive dimming of transparent glass to resist transient interference.
[0052] Specifically, computer-readable storage media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer-readable storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable storage media does not include transient media, such as modulated data signals and carrier waves.
[0053] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.
[0054] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations can be made to the embodiments of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A photosensitive dimming method for transparent glass resistant to transient interference, characterized in that, include: The original illumination signal collected by the photosensitive sensor is filtered to obtain the current illumination value after filtering. Based on the slow exponential smoothing algorithm, the historical benchmark value is recursively updated using the current illumination value to obtain the updated historical benchmark value that characterizes the long-term trend of ambient illumination, and the relative rate of change of the current illumination value relative to the updated historical benchmark value is calculated. Based on the current illumination value and the filtered illumination value of the previous sampling period, the current illumination change amount and the current illumination change rate are calculated. Then, through a dynamic threshold state machine, it is determined whether the current ambient light change exceeds the instantaneous interference range based on the current illumination change amount and the current illumination change rate. If the result is exceeded, a nonlinear S-shaped mapping function is used to generate the dimming level change based on the relative rate of change. The target dimming level is updated based on the change in dimming level, the target dimming level is smoothed, and the transparent glass is driven to perform stepless dimming through a progressive approximation mechanism.
2. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 1, characterized in that, The raw illumination signal collected by the photosensitive sensor is filtered to obtain the filtered current illumination value, including: The collected raw illumination signal is stored in a circular buffer, and the median of the raw illumination signal of the sliding window size is extracted from the circular buffer. The current illumination value is obtained by smoothing the median using an exponentially weighted moving average filtering method.
3. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 2, characterized in that, The formula for calculating the current illuminance value is: ; in, This is the current illumination value. The median value. This is the illumination value from the previous cycle. This is the first smoothing coefficient.
4. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 1 or 3, characterized in that, The formula for updating historical benchmark values is: ; The formula for calculating the relative rate of change is: ; in, This is the historical baseline value for the t-th sampling period. This is the current illumination value. This is the historical baseline value for the (t-1)th sampling period. This is the second smoothing coefficient; Let be the relative rate of change during the t-th sampling period.
5. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 1, characterized in that, The dynamic threshold state machine includes a stable period and an unstable period; Calculate the difference between the current illumination value and the filtered illumination value of the previous sampling period to obtain the current illumination change. Calculate the ratio of the current change in illumination to the sampling period to obtain the current rate of change in illumination; During the stable period, when the current change in illumination is greater than or equal to the first change threshold and the current rate of change in illumination is greater than or equal to the first rate of change threshold, it is determined that the current change in ambient light exceeds the range of instantaneous interference and the system enters the unstable period. During the unstable period, if the current change in illumination within a continuous preset time is less than the second change threshold and the current change rate of illumination is less than the second change rate threshold, it is determined that the current change in ambient light has not exceeded the instantaneous interference range, and the system returns to the stable period. Wherein, the first change threshold is greater than the second change threshold, and the first change rate threshold is greater than the second change rate threshold.
6. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 1, characterized in that, The expression for the nonlinear sigmoid mapping function is: ; in, Where k is the maximum change in illumination, and k is the steepness coefficient. This represents the change in dimming level. Let be the relative rate of change during the t-th sampling period.
7. The photosensitive dimming method for transparent glass with anti-transient interference according to claim 1, characterized in that, The target dimming level is updated based on the change in dimming level, the target dimming level is smoothed, and the transparent glass is driven to perform stepless dimming through a progressive approximation mechanism, including: The sum of the target dimming level and the change in the dimming level is calculated as the initial target dimming level. The initial target dimming level is then exponentially smoothed to obtain the smoothed target dimming level. A timer is started at a fixed period to control the target dimming level to gradually approach the smooth target dimming level with a step size δ. The final output dimming level is converted into an analog voltage signal to drive the dimming actuator of the transparent glass.
8. A light-sensitive dimming system for transparent glass that resists transient interference, characterized in that, include: A photosensitive sensor is used to collect raw light signals; A processor configured to perform the method as described in any one of claims 1 to 7; A dimming execution module, connected to the processor, is used to control the light transmittance of the transparent glass.
9. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the photosensitive dimming method for transparent glass that resists transient interference, as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program for performing the photosensitive dimming method for transparent glass that resists transient interference, as described in any one of claims 1 to 7.