This application relates to a vehicle anti-glare control method, device, electronic device, and storage medium. The method calculates the incident angle vector of the
light source based on the
light source information around the vehicle, accurately determining the incident direction of external strong light relative to the driver's eyes. Based on the incident angle vector, it determines the intersection point of the
light source's rays projected onto the driver's eyes in the
windshield or rearview mirror. It accurately correlates the light source and the driver's
eye position to the specific point on the
windshield or rearview mirror. Then, it determines the glare
impact index based on the driver's multi-dimensional characteristics. Finally, based on the glare
impact index and the intersection point, it identifies the target area for adjusting the light
transmittance from the
windshield or rearview mirror, adjusting the light only in a targeted local area. This effectively eliminates glare while maximizing the preservation of the driver's overall visual
clarity, avoiding secondary safety risks caused by limited
visibility due to overall darkening, and improving
driving safety.