Anti-glare control method, system, device and storage medium

By introducing ambient light sensors and rear glare sensors for light intensity correction and combining scene gain for anti-glare control, the problem of misjudgment caused by ignoring scene information in existing technologies is solved, achieving more accurate anti-glare control and improving driving comfort and safety.

CN122379256APending Publication Date: 2026-07-14JIANGSU AICRON ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
JIANGSU AICRON ELECTRONICS TECH CO LTD
Filing Date
2026-06-09
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing anti-glare control technologies neglect the close correlation between the human eye's perception of glare and the environment, resulting in insufficient control precision and a tendency to misjudge.

Method used

Using an ambient light sensor and a rear glare sensor, combined with the front window transmittance, rear window transmittance, lamp type correction coefficient, and influencing factor, ambient light and glare are corrected. By calculating the corrected light intensity and scene gain, precise anti-glare control is achieved.

Benefits of technology

It improves the accuracy and adaptability of anti-glare control, reduces or eliminates glare, enhances driving comfort and safety, and avoids misjudgment caused by ignoring scene information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122379256A_ABST
    Figure CN122379256A_ABST
Patent Text Reader

Abstract

The application relates to a glare control method, system, device and storage medium based on a glare control method, and relates to the glare control field. The method is based on an ambient light photosensitive element and a backward glare sensor, and the method comprises the following steps: receiving a front window transmittance, a rear window transmittance, a lamp type correction coefficient and an influence factor affecting the received illuminance value of the photosensitive element; measuring the ambient illuminance by using the ambient light photosensitive element, and calculating the corrected ambient light intensity according to the ambient illuminance, the front window transmittance and the influence factor; judging the current scene according to the corrected ambient light intensity, and determining the current scene gain according to the current scene; measuring the instantaneous illuminance by using the backward glare sensor, and calculating the corrected glare intensity according to the instantaneous illuminance, the rear window transmittance and the lamp type correction coefficient; calculating the final anti-glare degree according to the current scene gain and the corrected glare intensity, and performing electronic anti-glare control according to the final anti-glare degree. The technical effect is that the anti-glare control is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of anti-glare, and in particular to an anti-glare control method, system, device and storage medium. Background Technology

[0002] Glare is a phenomenon caused by extreme contrasts in brightness over time or space, resulting in visual discomfort. In automotive driving scenarios, glare primarily originates from the high beams of oncoming vehicles at night, the reflection of headlights from vehicles behind through rearview mirrors, and road surface glare in adverse weather conditions. The frequency of car accidents is closely related to lighting effectiveness; therefore, effectively avoiding glare has become a core issue in automotive lighting technology.

[0003] Existing technologies mainly employ the fixed threshold method and the dual-photosensitive ratio method for anti-glare control. The fixed threshold method collects ambient light through a photosensor and controls the system based on a preset threshold for turning anti-glare on or off. The dual-photosensitive ratio method analyzes the ratio of forward ambient light intensity to backward glare intensity to determine whether to trigger the anti-glare function.

[0004] However, the aforementioned technical solutions all overlook a crucial fact: the degree to which the human eye perceives glare does not depend solely on absolute brightness contrast, but is closely related to the surrounding environment (i.e., the specific scene). For example, in an environment with high overall brightness, even if the glare value (GR) is high, the human eye may not necessarily feel dazzled. Therefore, anti-glare control that ignores scene information is prone to misjudgment, resulting in insufficient control precision. Summary of the Invention

[0005] To achieve more precise anti-glare control, this application provides a method, system, device, and storage medium.

[0006] Firstly, this application provides an anti-glare control method, which adopts the following technical solution:

[0007] The front window transmittance, rear window transmittance, lamp type correction factor, and factors affecting the illuminance value received by the photosensitive element; The ambient illuminance is measured using the ambient light sensor, and the corrected ambient light intensity is calculated based on the ambient illuminance, the front window transmittance, and the influence factor. The current scene is determined based on the corrected ambient light intensity, and the current scene gain is determined based on the current scene. The instantaneous illuminance is measured using the rear glare sensor, and the corrected glare intensity is calculated based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The final anti-glare level is calculated based on the current scene gain and the corrected glare intensity, and electronic anti-glare control is performed based on the final anti-glare level.

[0008] Through the above technical solution, this application introduces an ambient light sensor and a rear glare sensor, and combines the front window transmittance, rear window transmittance, lamp type correction coefficient and influence factor to correct ambient light and glare, thereby obtaining more accurate light intensity data.

[0009] Furthermore, this application determines the current scene and scene gain based on the corrected ambient light intensity, ensuring that the final anti-glare calculation fully considers the actual environment in which the driver is located. Therefore, this method effectively avoids misjudgments caused by neglecting scene information in traditional anti-glare control, improving the accuracy and adaptability of anti-glare control. This, in turn, more effectively reduces or eliminates glare in automotive driving scenarios, enhancing driving comfort and safety.

[0010] In one specific implementation, the ambient illuminance and the instantaneous illuminance are the average values ​​of multiple samples taken within 1 second.

[0011] By using the above technical solution, the ambient illuminance and instantaneous illuminance are set to the average value of multiple samples taken within 1 second, effectively filtering out the influence of instantaneous fluctuations in ambient light, sensor noise, and other occasional interferences on the measurement results. This averaging process makes the acquired illuminance data more stable and accurate, avoiding misjudgment or over-response of the anti-glare control system due to single measurement errors or instantaneous outliers.

[0012] In one specific implementation, calculating the corrected ambient light intensity based on the ambient illuminance, the front window transmittance, and the influencing factor includes: The corrected ambient light intensity is calculated based on the ambient illuminance, the front window transmittance, and the influencing factor. The formula for calculating the corrected ambient light intensity is as follows: ENV_Corr=(ENV_raw / T_Front) alpha; Wherein, ENV_Corr is the corrected ambient light intensity, ENV_raw is the ambient illuminance, T_Front is the front window transmittance, and alpha is the influence factor.

[0013] Through the above technical solution, this application can accurately quantify the combined effect of ambient illuminance, windshield transmittance, and influencing factors on the corrected ambient light intensity. This avoids errors caused by fuzzy calculations or empirical judgments, ensuring that the corrected ambient light intensity more accurately reflects the actual lighting environment in which the driver is located. Consequently, the anti-glare control system can make more precise adjustments to the anti-glare level based on more reliable environmental information, effectively improving the response speed and adaptability of the anti-glare control.

[0014] In one specific implementation, calculating the corrected glare intensity based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient includes: The corrected glare intensity is calculated based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The formula for calculating the corrected glare intensity is as follows: GL_corr=(GL_raw / T_rear) S_type; Wherein, GL_corr is the corrected glare intensity, GL_raw is the instantaneous illuminance, T_rear is the rear window transmittance, and S_type is the lamp type correction coefficient.

[0015] Through the above technical solution, this application not only considers the original instantaneous illuminance measured by the rear glare sensor, but also effectively compensates for the light attenuation effect of the vehicle's rear window by introducing the rear window transmittance, making the calculated glare intensity closer to the actual light intensity felt by the driver. Simultaneously, by introducing a lamp type correction coefficient, the evaluation of the glare effect of different types of light sources is further refined, enabling the system to distinguish and quantify the impact of different light sources on glare, thereby avoiding glare evaluation bias caused by differences in light source type.

[0016] In one specific implementation scheme, calculating the final anti-glare level based on the current scene gain and the corrected glare intensity includes: Based on the preset glare intensity stage division standard, the glare intensity target stage and the target anti-glare level corresponding to the glare intensity target stage are determined according to the corrected glare intensity. Calculate the initial degree of anti-glare based on the target glare intensity stage and the target anti-glare level; The final anti-glare level is calculated based on the current scene gain and the initial anti-glare level. The formula for calculating the final anti-glare level is as follows: D = Boundary function CLAMP(SceneGain) f(GL_corr), 0, 100 SceneGain); Where D is the final anti-glare level, CLAMP is the boundary function, f(GL_corr) is the initial anti-glare level, and SceneGain is the scene gain.

[0017] Through the above technical solution, this application can discretize the continuously changing corrected glare intensity into different glare intensity target stages, and determine the corresponding target anti-glare level for each stage. This staged processing method makes the calculation of the initial anti-glare level more precise and targeted, avoiding insufficient or excessive control that may be caused by simple linear mapping.

[0018] This application modifies the initial anti-glare level by combining the current scene gain, so that the calculation of the final anti-glare level can fully take into account the influence of ambient lighting conditions on the driver's perceived glare, thereby achieving more intelligent and adaptive electronic anti-glare control.

[0019] In one specific implementation scheme, calculating the preliminary anti-glare level based on the glare intensity target stage and the target anti-glare level includes: The initial level of glare reduction is calculated based on the target glare intensity stage and the target anti-glare level. The formula for calculating the initial level of glare reduction is as follows: f(GL_corr)=100 sigmoid_a((GL-GL_th) / GL_scale); Where f(GL_corr) is the initial anti-glare level, GL is the corrected glare intensity, GL_th is the initial value of the target glare intensity stage, GL_scale is the stage length of the target glare intensity stage, and sigmoid_a is an S-function with an adjustable slope.

[0020] Through the above technical solution, the sigmoid_a function can simulate the nonlinear characteristics of human eye's perception of glare, making the calculation of anti-glare level exhibit a smooth change that conforms to the physiological curve under different glare intensities. sigmoid_a achieves piecewise linear smooth transitions, avoiding sudden brightening and dimming, and significantly improving the comfort and accuracy of anti-glare control.

[0021] In one specific implementation scheme, the electronic anti-glare control based on the final anti-glare level includes: The current environment image is acquired, and the current image exposure is obtained by analyzing the current environment image. Receive a preset exposure anti-glare association library, which includes several anti-glare levels and the reasonable range of image exposure corresponding to the anti-glare levels; Based on the final anti-glare level, the reasonable range of target image exposure corresponding to the final anti-glare level is obtained by querying the exposure anti-glare association database; Determine whether the current image exposure is within a reasonable range for the target image exposure; If the current image exposure is within a reasonable range of the target image exposure, then electronic anti-glare control is performed based on the final anti-glare level.

[0022] The above technical solution effectively verifies electronic anti-glare control based on the final anti-glare level by introducing exposure analysis of the current environmental image. This makes anti-glare control no longer a simple numerical mapping, but an intelligent adjustment combined with actual visual feedback, thereby improving the accuracy of anti-glare control.

[0023] Secondly, this application provides an anti-glare control system, which is based on an ambient light sensor and a rear glare sensor, and adopts the following technical solution: The system includes: The data receiving module (301) is used to receive the front window transmittance, rear window transmittance, lamp type correction coefficient, and factors affecting the illuminance value received by the photosensitive element; An ambient light intensity correction module is used to measure the ambient illuminance using the ambient light sensor, and to calculate the corrected ambient light intensity based on the ambient illuminance, the front window transmittance, and the influence factor. The scene gain module is used to determine the current scene based on the corrected ambient light intensity and to determine the current scene gain based on the current scene. The glare intensity correction module is used to measure the instantaneous illuminance using the rear glare sensor, and calculate the corrected glare intensity based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The anti-glare control module is used to calculate the final anti-glare level based on the current scene gain and the corrected glare intensity, and to perform electronic anti-glare control based on the final anti-glare level.

[0024] Thirdly, this application provides a computer device that adopts the following technical solution: it includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed as described above for an anti-glare control method.

[0025] Fourthly, this application provides a computer-readable storage medium, which employs the following technical solution: storing a computer program that can be loaded by a processor and executed as described above for an anti-glare control method.

[0026] In summary, this application has the following beneficial technical effects: (1) This application introduces an ambient light sensor and a rear glare sensor, and combines the front window transmittance, rear window transmittance, lamp type correction coefficient and influence factor to correct the ambient light and glare, thereby obtaining more accurate light intensity data.

[0027] (2) This application determines the current scene and scene gain based on the corrected ambient light intensity, so that the calculation of the final anti-glare level can fully consider the actual environment in which the driver is located. As a result, this method can effectively avoid the misjudgment caused by ignoring scene information in traditional anti-glare control, improve the accuracy and adaptability of anti-glare control, and thus more effectively reduce or eliminate glare in car driving scenarios, thereby improving driving comfort and safety.

[0028] (3) The sigmoid_a function used in this application can simulate the nonlinear characteristics of human eye perception of glare, so that the calculation of the degree of anti-glare presents a smooth change that conforms to the physiological curve under different glare intensities. sigmoid_a achieves piecewise linear smooth transition, avoids sudden bright and dark changes, and significantly improves the comfort and accuracy of anti-glare control.

[0029] (4) This application effectively verifies electronic anti-glare control based on the final anti-glare level by introducing exposure analysis of the current environmental image. This makes anti-glare control no longer a simple numerical mapping, but an intelligent adjustment that combines actual visual feedback, thereby improving the accuracy of anti-glare control. Attached Figure Description

[0030] Figure 1 This is a flowchart of an anti-glare control method in an embodiment of this application.

[0031] Figure 2 This is a detailed flowchart of an anti-glare control method in an embodiment of this application.

[0032] Figure 3 This is a structural block diagram of an anti-glare control method according to an embodiment of this application.

[0033] Reference numerals: 301, Data receiving module; 302, Ambient light intensity correction module; 303, Scene gain module; 304, Glare intensity correction module; 305, Anti-glare control module. Detailed Implementation

[0034] The following is in conjunction with the appendix Figures 1-3 This application provides further details.

[0035] This application discloses an anti-glare control method, which is used to achieve more precise anti-glare control.

[0036] Glare is a phenomenon caused by extreme contrasts in brightness over time or space, resulting in visual discomfort. In automotive driving scenarios, glare primarily originates from the high beams of oncoming vehicles at night, the reflection of headlights from vehicles behind through rearview mirrors, and road surface glare in adverse weather conditions. The frequency of car accidents is closely related to lighting effectiveness; therefore, effectively avoiding glare has become a core issue in automotive lighting technology.

[0037] Existing technologies mainly employ the fixed threshold method and the dual-photosensor ratio method for anti-glare control. The fixed threshold method uses a photosensor to collect ambient light; when the ambient light collected by the rear photosensor is greater than the fixed threshold, anti-glare is activated; when the ambient light collected by the rear photosensor is less than the release threshold, anti-glare is deactivated. The dual-photosensor ratio method is based on the forward ambient light (Ambient ENV-E). b The ratio of the calculated back glare intensity to the back glare intensity (Glare-Eg). Further analysis using the time integration method Accumulated_Glare=∫Eg(t)dt is used to determine whether the anti-glare function is triggered.

[0038] However, the aforementioned technical solutions all overlook a crucial fact: the degree to which the human eye perceives glare does not depend solely on absolute brightness contrast, but is closely related to the surrounding environment (i.e., the specific scene). For example, in an environment with high overall brightness, even if the glare value (GR) is high, the human eye may not necessarily feel dazzled. Therefore, anti-glare control that ignores scene information is prone to misjudgment, resulting in insufficient control precision.

[0039] Furthermore, the acquisition of ambient light and rear glare depends on the sensitivity, sampling frequency, and consistency of the photosensitive element. High exposure during instantaneous sampling can lead to a large GR, but because the time is short, there is no need to activate the anti-glare switch, which can easily cause misjudgment and result in insufficient control accuracy.

[0040] Therefore, this application proposes an anti-glare control method, system, device and storage medium, which enables more precise anti-glare control.

[0041] The method is based on an ambient light sensor and a rear glare sensor. The ambient light sensor detects the overall brightness of the vehicle's external environment and converts the light signal into an electrical signal to provide ambient illuminance data. This element is typically installed at the front of the vehicle or on the dashboard to monitor ambient light conditions in the vehicle's direction of travel.

[0042] A rear glare sensor is used to detect strong light from behind a vehicle, such as the high beams of a vehicle behind, and converts the glare intensity into an electrical signal. This sensor is typically mounted near the vehicle's rearview mirror to assess the intensity of light sources that may cause glare to the driver.

[0043] like Figure 1 As shown, the method includes: S10, receiving the front window transmittance, rear window transmittance, lamp type correction coefficient, and factors affecting the illuminance value received by the photosensitive element.

[0044] Specifically, the front window transmittance (T_front) represents the ability of the vehicle's front window glass to transmit ambient light. This parameter is used to correct the ambient illuminance measured by the ambient light sensor to more accurately reflect the ambient light intensity actually felt by the driver. Its typical value is 0.8 to 0.9. Rear window transmittance (T_rear) represents the ability of the vehicle's rear window glass or rearview mirror to transmit glare. This parameter is used to correct the instantaneous illuminance measured by the rear glare sensor to more accurately reflect the actual intensity of glare in the driver's light path. The general value is 0~1. Considering privacy glass / film clear≈0.85–0.9, light smoke≈0.6, deep privacy≈0.2–0.4, it needs to be quantified and calibrated. The lamp type correction factor (S_type) is used to compensate for the differences in glare perception of the human eye under the same illuminance for different types of light sources. This factor can make the glare intensity calculation more in line with the visual characteristics of the human eye. For example, halogen = 1.0, xenon = 1.1, and LED = 1.2. The influence factor (Alpha) is used to correct for the influence of other external factors that may affect the illumination value received by the ambient light sensor, such as the influence of external etching on the sensor (etching usually involves the angle of light incidence, the installation position of the sensor, etc., with an empirical value of 2.5~3).

[0045] S20 uses an ambient light sensor to measure the ambient illuminance, and calculates the corrected ambient light intensity based on the ambient illuminance, the transmittance of the front window, and the influence factor.

[0046] Specifically, such as Figure 2 The diagram shown is a detailed flowchart of this application. The raw illuminance data (ENV_Raw), measured by ambient light sensors inside or outside the vehicle (e.g., near the windshield or dashboard, or a streaming rearview mirror), is expressed in lux. The corrected ambient light intensity (ENV_Corr) is calculated based on this ambient illuminance, the windshield transmittance, and an influence factor. For example, the corrected ambient light intensity can be obtained by dividing the ambient illuminance by the windshield transmittance and then multiplying by the influence factor.

[0047] S30: Determine the current scene based on the corrected ambient light intensity, and determine the current scene gain based on the current scene.

[0048] Specifically, the current scene is determined by comparing the corrected ambient light intensity with a series of preset fixed thresholds. For example, when ENV_Corr ≥ 30 lux, the scene is daytime; when 30 > ENV_Corr ≥ 5 lux, the scene is bright dusk / tunnel entrance; when 5 > ENV_Corr ≥ 1 lux, the scene is night / underground parking garage; and when ENV_Corr < 1 lux, the scene is starlight at night. Based on the determined current scene, the corresponding current scene gain is determined. For example, a fixed gain value can be preset for each scene, such as a higher gain for nighttime scenes and a lower gain for daytime scenes.

[0049] S40 uses a rear glare sensor to measure instantaneous illuminance, and calculates the corrected glare intensity based on instantaneous illuminance, rear window transmittance, and lamp type correction coefficient.

[0050] Specifically, the instantaneous illuminance (GL_raw), measured in lux, is obtained using a rearward glare sensor connected to a small photoelectric sensor near the rearview mirror. The corrected glare intensity (GL_corr) is then calculated based on this instantaneous illuminance, the rear window transmittance, and the lamp type correction factor. For example, the corrected glare intensity can be obtained by dividing the instantaneous illuminance by the rear window transmittance and then multiplying by the lamp type correction factor.

[0051] The S50 calculates the final anti-glare level based on the current scene gain and the corrected glare intensity, and performs electronic anti-glare control based on the final anti-glare level.

[0052] Specifically, the final anti-glare level is calculated based on the current scene gain and the corrected glare intensity. The final anti-glare level can be obtained by calculating the corrected glare intensity against the current scene gain. Electronic anti-glare control is then implemented based on this final anti-glare level.

[0053] This application introduces an ambient light sensor and a rear glare sensor, and combines the front window transmittance, rear window transmittance, lamp type correction coefficient and influence factor to correct ambient light and glare, thereby obtaining more accurate light intensity data.

[0054] Furthermore, this application determines the current scene and scene gain based on the corrected ambient light intensity, ensuring that the final anti-glare calculation fully considers the actual environment in which the driver is located. Therefore, this method effectively avoids misjudgments caused by neglecting scene information in traditional anti-glare control, improving the accuracy and adaptability of anti-glare control. This, in turn, more effectively reduces or eliminates glare in automotive driving scenarios, enhancing driving comfort and safety.

[0055] In one embodiment, to achieve more precise anti-glare control, the ambient illuminance and instantaneous illuminance are averaged based on multiple samples taken within one second. Specifically, within a one-second time period, the ambient light sensor and the backglare sensor sample the ambient illuminance and instantaneous illuminance values ​​multiple times, either continuously or at intervals. For example, multiple samples can be taken within one second at fixed time intervals such as 10ms, 20ms, or 50ms to obtain a series of illuminance measurements. Subsequently, the arithmetic mean of these multiple illuminance measurements acquired within one second is calculated to obtain the average ambient illuminance value and the average instantaneous illuminance value within that one-second period.

[0056] By setting the ambient illuminance and instantaneous illuminance to the average of multiple samples taken within 1 second, the influence of instantaneous fluctuations in ambient light, sensor noise, and other occasional interferences on the measurement results is effectively filtered out. This averaging process makes the acquired illuminance data more stable and accurate, avoiding misjudgment or over-response of the anti-glare control system due to single measurement errors or instantaneous outliers.

[0057] In one embodiment, to achieve more precise anti-glare control, the step of calculating the corrected ambient light intensity based on ambient illuminance, front window transmittance, and influence factors can be specifically performed as follows: The corrected ambient light intensity is calculated based on ambient illuminance, front window transmittance, and influencing factors. The formula for calculating the corrected ambient light intensity is as follows: ENV_Corr=(ENV_raw / T_Front) alpha; Wherein, ENV_Corr is the corrected ambient light intensity, ENV_raw is the ambient illuminance, T_Front is the front window transmittance, and alpha is the influence factor.

[0058] Specifically, the corrected ambient light intensity (ENV_Corr) is calculated based on the ambient illuminance, the front window transmittance, and the influence factor. For example, the corrected ambient light intensity can be obtained by dividing the ambient illuminance by the front window transmittance and then multiplying by the influence factor.

[0059] This application can accurately quantify the combined effect of ambient illuminance, windshield transmittance, and influencing factors on the corrected ambient light intensity. It avoids errors caused by fuzzy calculations or empirical judgments, ensuring that the corrected ambient light intensity more accurately reflects the actual lighting environment in which the driver is located. This allows the anti-glare control system to make more precise adjustments to the anti-glare level based on more reliable environmental information, effectively improving the response speed and adaptability of the anti-glare control.

[0060] In one embodiment, to achieve more precise anti-glare control, the step of calculating the corrected glare intensity based on instantaneous illuminance, rear window transmittance, and lamp type correction coefficient can be specifically performed as follows: The corrected glare intensity is calculated based on instantaneous illuminance, rear window transmittance, and lamp type correction factor. The formula for calculating the corrected glare intensity is as follows: GL_corr=(GL_raw / T_rear) S_type; Wherein, GL_corr is the corrected glare intensity, GL_raw is the instantaneous illuminance, T_rear is the rear window transmittance, and S_type is the lamp type correction coefficient.

[0061] Specifically, the corrected glare intensity (GL_corr) is calculated based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction factor. For example, the corrected glare intensity can be obtained by dividing the instantaneous illuminance by the rear window transmittance and then multiplying it by the lamp type correction factor.

[0062] This application not only considers the raw instantaneous illuminance measured by the rear glare sensor, but also effectively compensates for the light attenuation effect of the vehicle's rear window by introducing the rear window transmittance, making the calculated glare intensity closer to the actual light intensity felt by the driver. Simultaneously, by introducing a lamp type correction coefficient, the evaluation of the glare effect of different types of light sources is further refined, enabling the system to distinguish and quantify the impact of different light sources on glare, thereby avoiding glare evaluation bias caused by differences in light source type.

[0063] In one embodiment, to achieve more precise anti-glare control, the step of calculating the final anti-glare level based on the current scene gain and the corrected glare intensity can be specifically performed as follows: Based on the preset glare intensity stage division standard, the glare intensity target stage and the target anti-glare level corresponding to the glare intensity target stage are determined according to the corrected glare intensity. The initial level of glare reduction is calculated based on the target glare intensity level and the target anti-glare rating. The formula for calculating the initial level of glare reduction is as follows: f(GL_corr)=100 sigmoid_a((GL-GL_th) / GL_scale); Where f(GL_corr) is the initial anti-glare level, GL is the corrected glare intensity, GL_th is the initial value of the target glare intensity stage, GL_scale is the stage length of the target glare intensity stage, and sigmoid_a is an S-function with an adjustable slope. The final anti-glare level is calculated based on the current scene gain and the initial anti-glare level. The formula for calculating the final anti-glare level is as follows: D = Boundary function CLAMP(SceneGain) f(GL_corr), 0, 100 SceneGain); Where D is the final anti-glare level, CLAMP is the boundary function, f(GL_corr) is the initial anti-glare level, and SceneGain is the scene gain.

[0064] Specifically, different glare intensity levels are pre-defined for different scenarios. For example, in tunnel / dusk scenarios, when GL_corr < 5 lux, the glare reduction percentage (Dimming%) is 0%; when 5 ≤ GL_corr < 20, the glare reduction percentage (Dimming%) is 0%~50%; when 20 ≤ GL_corr < 50, the glare reduction percentage (Dimming%) is 50%~80%; when 50 ≤ GL_corr < 200, the glare reduction percentage (Dimming%) is 80%~100%; and when GL_corr ≥ 200, the glare reduction percentage (Dimming%) is 100%. Without introducing the concept of scene gain, the initial anti-glare level is calculated using the formula: f(GL_corr) = 100 sigmoid_a((GL-GL_th) / GL_scale); Where f(GL_corr) is the initial anti-glare level, GL is the corrected glare intensity, GL_th is the initial value of the target glare intensity stage, GL_scale is the stage length of the target glare intensity stage, and sigmoid_a is an S-function with an adjustable slope. The calculation process for the preliminary anti-glare level is as follows: When GL_corr < 5 lux, the anti-glare level (Dimming%) for this stage is 0%, and the initial anti-glare level (Dimming%) is 0%. When 5 ≤ GL_corr < 20, the anti-glare level (Dimming%) for this stage is 0%~50%, and the initial anti-glare level (D) is calculated as (GL_corr - 5) / (20 - 5). 50%; When 20≤GL_corr<50, the anti-glare level (Dimming%) at this stage is 50%~80%, and the initial anti-glare level (D) is 50%+(GL_corr-20) / (50-20). 30%; When 50 ≤ GL_corr < 200, the anti-glare level (Dimming%) for this stage is 80%~100%, and the initial anti-glare level (D) is calculated as: D = 80% + min((GL_corr - 50) / 150 20%, 20%); When GL_corr≥200, the anti-glare level (Dimming%) at this stage is 100%, and the initial anti-glare level is 100%.

[0065] After introducing the concept of scene gain, the final formula for calculating the anti-glare level is: D = Boundary function CLAMP(SceneGain) f(GL_corr), 0, 100 SceneGain); Where D is the final anti-glare level, CLAMP is the boundary function, f(GL_corr) is the initial anti-glare level, and SceneGain is the scene gain.

[0066] Combining the two formulas above, taking a tunnel / dusk scene with a scene gain of 0.8 as an example, the formula for calculating the anti-glare level is as follows: When GL_corr < 5 lux, the anti-glare level (Dimming%) is 0% at this stage. 0.8, the final anti-glare rating (Dimming%) is 0%; When 5 ≤ GL_corr < 20, the anti-glare level (Dimming%) for this stage is (0% ~ 50%). 0.8 represents 0%~40%, and the final anti-glare level D = (GL_corr - 5) / (20 - 5) 40%; When 20≤GL_corr<50, the anti-glare level (Dimming%) for this stage is (50%~80%). 0.8 represents 40%~64%, and the final anti-glare level D = 40% + (GL_corr - 20) / (50 - 20) twenty four%; When 50≤GL_corr<200, the anti-glare level (Dimming%) for this stage is (80%~100%). 0.8 represents 64%~80%, and the final anti-glare level D = 64% + min((GL_corr - 50) / 150 16%, 16%); When GL_corr ≥ 200, the anti-glare level (Dimming%) for this stage is 100%. 0.8 means the final anti-glare rating (Dimming%) is 80%.

[0067] This application can discretize the continuously changing corrected glare intensity into different glare intensity target stages and determine the corresponding target anti-glare level for each stage. This staged processing method makes the calculation of the initial anti-glare level more precise and targeted, avoiding insufficient or excessive control that may be caused by simple linear mapping.

[0068] This application modifies the initial anti-glare level by combining the current scene gain, so that the calculation of the final anti-glare level can fully take into account the influence of ambient lighting conditions on the driver's perceived glare, thereby achieving more intelligent and adaptive electronic anti-glare control.

[0069] The sigmoid_a function can simulate the non-linear characteristics of human eye's perception of glare, making the calculation of anti-glare level exhibit a smooth change that conforms to the physiological curve under different glare intensities. sigmoid_a achieves piecewise linear smooth transitions, avoiding sudden brightening and dimming, and significantly improving the comfort and accuracy of anti-glare control.

[0070] In one embodiment, to achieve more precise anti-glare control, this step can be specifically performed as follows: The system acquires an image of the current environment and analyzes it to obtain the current image exposure. It receives a preset exposure anti-glare correlation library, which includes several anti-glare levels and corresponding reasonable exposure ranges. Based on the final anti-glare level, it queries the exposure anti-glare correlation library to obtain the reasonable exposure range of the target image corresponding to that level. It then determines whether the current image exposure is within the reasonable range of the target image exposure. If the current image exposure is within the reasonable range of the target image exposure, electronic anti-glare control is performed based on the final anti-glare level.

[0071] Specifically, the current image exposure is obtained by using other external vehicle light-sensing components or AI image analysis after the camera input. The exposure anti-glare correlation library is a pre-built database or lookup table that stores the mapping relationship between different anti-glare levels and the corresponding reasonable range of image exposure. The exposure anti-glare correlation library includes several anti-glare levels and the corresponding reasonable range of image exposure, which means that for each calculated final anti-glare level, there are one or more predefined exposure ranges that are considered visually comfortable and of good image quality. Using the final anti-glare level calculated at the moment as an index value, a matching record is searched in the exposure anti-glare association library to obtain the expected image exposure range under that anti-glare level. Determine whether the current image exposure is within the reasonable range of the target image exposure. If the current image exposure is within the reasonable range of the target image exposure, it means that the final anti-glare level is reasonable, and control will continue according to the calculated final anti-glare level. If the current image exposure is not within the reasonable range of the target image exposure, it means that the final anti-glare level is unreasonable, and no anti-glare control will be performed.

[0072] The electronic anti-glare control based on the final anti-glare level was effectively validated by introducing exposure analysis of the current environmental image. This makes anti-glare control no longer a simple numerical mapping, but an intelligent adjustment that incorporates actual visual feedback, thereby improving the accuracy of anti-glare control.

[0073] Based on the above method, this application also discloses an anti-glare control system. For example... Figure 3 The system includes the following modules: Data receiving module 301 is used to receive the front window transmittance, rear window transmittance, lamp type correction coefficient, and factors affecting the illuminance value received by the photosensitive element; Ambient light intensity correction module 302 is used to measure ambient illuminance using an ambient light sensor and calculate the corrected ambient light intensity based on ambient illuminance, front window transmittance and influence factor. The scene gain module 303 is used to determine the current scene based on the corrected ambient light intensity and to determine the current scene gain based on the current scene. Glare intensity correction module 304 is used to measure instantaneous illuminance using a rear glare sensor and calculate corrected glare intensity based on instantaneous illuminance, rear window transmittance and lamp type correction coefficient. The anti-glare control module 305 is used to calculate the final anti-glare level based on the current scene gain and the corrected glare intensity, and to perform electronic anti-glare control based on the final anti-glare level.

[0074] In one embodiment, the ambient light intensity correction module 302 is specifically used to calculate the average value of multiple samples taken within 1 second for the ambient illuminance.

[0075] In one embodiment, the glare intensity correction module 304 is specifically used to take the average value of multiple samples within 1 second for instantaneous illuminance.

[0076] In one embodiment, the ambient light intensity correction module 302 is specifically used to calculate the corrected ambient light intensity based on the ambient illuminance, the transmittance of the front window, and the influencing factor. The calculation formula for the corrected ambient light intensity is as follows: ENV_Corr=(ENV_raw / T_Front) alpha; Wherein, ENV_Corr is the corrected ambient light intensity, ENV_raw is the ambient illuminance, T_Front is the front window transmittance, and alpha is the influence factor.

[0077] In one embodiment, the glare intensity correction module 304 is specifically used to calculate the corrected glare intensity based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The calculation formula for the corrected glare intensity is as follows: GL_corr=(GL_raw / T_rear) S_type; Wherein, GL_corr is the corrected glare intensity, GL_raw is the instantaneous illuminance, T_rear is the rear window transmittance, and S_type is the lamp type correction coefficient.

[0078] In one embodiment, the anti-glare control module 305 is specifically used to determine the target glare intensity stage and the target anti-glare level corresponding to the target glare intensity stage based on a preset glare intensity stage division standard and the corrected glare intensity. Calculate the initial level of glare reduction based on the target glare intensity stage and the target glare reduction level; The final anti-glare level is calculated based on the current scene gain and the initial anti-glare level. The formula for calculating the final anti-glare level is as follows: D = Boundary function CLAMP(SceneGain) f(GL_corr), 0, 100 SceneGain); Where D is the final anti-glare level, CLAMP is the boundary function, f(GL_corr) is the initial anti-glare level, and SceneGain is the scene gain.

[0079] In one embodiment, the anti-glare control module 305 is specifically used to calculate the initial anti-glare level based on the target glare intensity stage and the target anti-glare level. The calculation formula for the initial anti-glare level is as follows: f(GL_corr)=100 sigmoid_a((GL-GL_th) / GL_scale); Where f(GL_corr) is the initial anti-glare level, GL is the corrected glare intensity, GL_th is the initial value of the target glare intensity stage, GL_scale is the stage length of the target glare intensity stage, and sigmoid_a is an S-function with an adjustable slope.

[0080] In one embodiment, the anti-glare control module 305 is specifically used to acquire a current environmental image and analyze the current environmental image to obtain the current image exposure. Receive a preset exposure anti-glare association library, which includes several anti-glare levels and the corresponding reasonable range of image exposure. Based on the final anti-glare level, the reasonable range of target image exposure corresponding to the final anti-glare level is obtained by querying the exposure anti-glare association database; Determine whether the current image exposure is within a reasonable range for the target image exposure; If the current image exposure is within a reasonable range of the target image exposure, then electronic anti-glare control will be implemented based on the final level of anti-glare.

[0081] This application also discloses a computer device.

[0082] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and executed as described above for an anti-glare control method.

[0083] This application also discloses a computer-readable storage medium.

[0084] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and executed as described above for an anti-glare control method. The computer-readable storage medium includes, for example, various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0085] This specific embodiment is merely an explanation of the present invention and is not intended to limit the invention. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they are within the scope of the claims of the present invention.

Claims

1. An anti-glare control method, characterized in that, The method is based on an ambient light sensor and a rear glare sensor, and the method includes: The front window transmittance, rear window transmittance, lamp type correction factor, and factors affecting the illuminance value received by the photosensitive element; The ambient illuminance is measured using the ambient light sensor, and the corrected ambient light intensity is calculated based on the ambient illuminance, the front window transmittance, and the influence factor. The current scene is determined based on the corrected ambient light intensity, and the current scene gain is determined based on the current scene. The instantaneous illuminance is measured using the rear glare sensor, and the corrected glare intensity is calculated based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The final anti-glare level is calculated based on the current scene gain and the corrected glare intensity, and electronic anti-glare control is performed based on the final anti-glare level.

2. The method according to claim 1, characterized in that, The ambient illuminance and the instantaneous illuminance are the average values ​​of multiple samples taken within 1 second.

3. The method according to claim 1, characterized in that, The calculation of the corrected ambient light intensity based on the ambient illuminance, the front window transmittance, and the influencing factor includes: The corrected ambient light intensity is calculated based on the ambient illuminance, the front window transmittance, and the influencing factor. The formula for calculating the corrected ambient light intensity is as follows: ENV_Corr=(ENV_raw / T_Front) alpha; Wherein, ENV_Corr is the corrected ambient light intensity, ENV_raw is the ambient illuminance, T_Front is the front window transmittance, and alpha is the influence factor.

4. The method according to claim 1, characterized in that, The calculation of the corrected glare intensity based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient includes: The corrected glare intensity is calculated based on the instantaneous illuminance, the rear window transmittance, and the lamp type correction coefficient. The formula for calculating the corrected glare intensity is as follows: GL_corr=(GL_raw / T_rear) S_type; Wherein, GL_corr is the corrected glare intensity, GL_raw is the instantaneous illuminance, T_rear is the rear window transmittance, and S_type is the lamp type correction coefficient.

5. The method according to claim 1, characterized in that, The calculation of the final anti-glare level based on the current scene gain and the corrected glare intensity includes: Based on the preset glare intensity stage division standard, the glare intensity target stage and the target anti-glare level corresponding to the glare intensity target stage are determined according to the corrected glare intensity. Calculate the initial degree of anti-glare based on the target glare intensity stage and the target anti-glare level; The final anti-glare level is calculated based on the current scene gain and the initial anti-glare level. The formula for calculating the final anti-glare level is as follows: D = Boundary function CLAMP(SceneGain) f(GL_corr), 0, 100 SceneGain); Where D is the final anti-glare level, CLAMP is the boundary function, f(GL_corr) is the initial anti-glare level, and SceneGain is the scene gain.

6. The method according to claim 1, characterized in that, The calculation of the preliminary anti-glare level based on the target glare intensity stage and the target anti-glare level includes: The initial level of glare reduction is calculated based on the target glare intensity stage and the target anti-glare level. The formula for calculating the initial level of glare reduction is as follows: f(GL_corr)=100 sigmoid_a((GL-GL_th) / GL_scale); Where f(GL_corr) is the initial anti-glare level, GL is the corrected glare intensity, GL_th is the initial value of the target glare intensity stage, GL_scale is the stage length of the target glare intensity stage, and sigmoid_a is an S-function with an adjustable slope.

7. The method according to claim 6, characterized in that, The electronic anti-glare control based on the final anti-glare level includes: The current environment image is acquired, and the current image exposure is obtained by analyzing the current environment image. Receive a preset exposure anti-glare association library, which includes several anti-glare levels and the reasonable range of image exposure corresponding to the anti-glare levels; Based on the final anti-glare level, the reasonable range of target image exposure corresponding to the final anti-glare level is obtained by querying the exposure anti-glare association database; Determine whether the current image exposure is within a reasonable range for the target image exposure; If the current image exposure is within a reasonable range of the target image exposure, then electronic anti-glare control is performed based on the final anti-glare level.

8. An anti-glare control system, characterized in that, The system is based on an ambient light sensor and a rear glare sensor. The system includes: The data receiving module (301) is used to receive the front window transmittance, rear window transmittance, lamp type correction coefficient, and factors affecting the illuminance value received by the photosensitive element; An ambient light intensity correction module (302) is used to measure the ambient illuminance using the ambient light sensor and calculate the corrected ambient light intensity based on the ambient illuminance, the front window transmittance and the influence factor. Scene gain module (303) is used to determine the current scene based on the corrected ambient light intensity and to determine the current scene gain based on the current scene. Glare intensity correction module (304) is used to measure the instantaneous illuminance using the rear glare sensor, and calculate the corrected glare intensity based on the instantaneous illuminance, the rear window transmittance and the lamp type correction coefficient; The anti-glare control module (305) is used to calculate the final anti-glare level based on the current scene gain and the corrected glare intensity, and to perform electronic anti-glare control based on the final anti-glare level.

9. A computer device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executed according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer program is stored that can be loaded by a processor and executed according to any one of claims 1 to 7.