Vehicle rearview mirror control method and vehicle

By acquiring ambient brightness values ​​and high beam detection data through camera equipment, and combining this with the vehicle's enabled status, a triple verification condition is set to determine the activation conditions for the anti-glare detection. Based on the exposure control parameters, the light transmittance of the rearview mirror is adjusted, which solves the glare problem caused by the reflection of high beams in the rearview mirror and improves the reliability and stability of the anti-glare function.

CN121625960APending Publication Date: 2026-03-10GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-01-23
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

At night or in low-light conditions, the reflection of the high beams of vehicles behind in the rearview mirror can cause glare to the driver. Existing technology has difficulty in accurately distinguishing between real glare and normal lighting conditions, which can lead to the false triggering of the anti-glare function.

Method used

By acquiring ambient brightness values ​​through camera equipment, and combining them with vehicle enable status and high beam detection, a triple verification condition is set to determine the activation condition of anti-glare detection. The light transmittance of the rearview mirror is adjusted based on exposure control parameters, and electrochromic materials are used to achieve anti-glare control.

Benefits of technology

It reduces false triggering of the anti-glare function, improves the reliability and stability of the anti-glare function, and ensures safe driving for drivers in low-light environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121625960A_ABST
    Figure CN121625960A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle rearview mirror control method and a vehicle, and the method is applied to the technical field of vehicle control, and the method comprises the steps: obtaining an environment brightness value of an environment where the vehicle is located through a camera device arranged in the vehicle, and combining the environment brightness value with an enabling state of the vehicle, the control module is used for judging whether the vehicle meets an anti-dazzling detection starting condition set for the rearview mirror or not, and when the vehicle meets the anti-dazzling detection starting condition, based on the environment brightness value and a preset target brightness value, determining exposure control parameters needed for brightness processing of the environment brightness value, and performing anti-dazzling control on the rearview mirror based on the exposure control parameters. The exposure control parameters can reflect the long-term trend of environment illumination instead of the instantaneous state, so that whether anti-dazzling control is carried out or not is judged through the exposure control parameters in the brightness processing process, false triggering of the anti-dazzling function is reduced, and the reliability and stability of the anti-dazzling function are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle control technology, and more specifically, to a vehicle rearview mirror control method and a vehicle within the field of vehicle control technology. Background Technology

[0002] When a vehicle is driving at night or in low-light conditions and is illuminated by the high beams of a vehicle behind, the strong light received by the rearview mirror will be directly reflected into the driver's eyes, causing the driver to be unable to see the road ahead and the surrounding environment for a short period of time, which can easily lead to a safety accident. In order to prevent the driver from being dazzled by the strong light reflected from the rearview mirror, the relevant technology activates the anti-glare function when strong light is detected behind the vehicle, and controls the light transmittance of the rearview mirror. However, relying solely on the brightness of the light to control the activation of the anti-glare function is prone to false activation due to complex changes in ambient light (alternating light and dark in tunnels, flashing lights of vehicles behind), and cannot accurately distinguish between real glare and normal lighting conditions. Summary of the Invention

[0003] This application provides a vehicle rearview mirror control method and a vehicle, which can reduce false triggering of the anti-glare function and improve the reliability and stability of the anti-glare function.

[0004] Firstly, a method for controlling a vehicle rearview mirror is provided. This method is applied to a vehicle, which includes a rearview mirror and a camera device. The method includes: acquiring the ambient brightness value of the environment in which the target vehicle is located using the camera device; determining whether the target vehicle meets the activation conditions for anti-glare detection set for the rearview mirror based on the ambient brightness value and the enabled state of the target vehicle; if the target vehicle meets the activation conditions, determining the exposure control parameters used for brightness processing of the ambient brightness value based on the ambient brightness value and a pre-set target brightness value; and performing anti-glare control on the rearview mirror based on the exposure control parameters.

[0005] In the above technical solution, the ambient brightness value of the vehicle's environment is acquired by a camera installed in the vehicle. This ambient brightness value, combined with the vehicle's enabled state, is used to determine whether the vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror. When the vehicle meets the activation conditions for anti-glare detection, the exposure control parameters required for brightness processing of the ambient brightness value are determined based on the ambient brightness value and a pre-set target brightness value. Anti-glare control is then applied to the rearview mirror based on these exposure control parameters. Since the exposure control parameters are physical control quantities that undergo closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, they reflect the long-term trend of ambient light rather than an instantaneous state. Therefore, determining whether to apply anti-glare control through the exposure control parameters during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability.

[0006] In conjunction with the first aspect, in some possible implementations, the step of determining whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror based on the ambient brightness value and the target vehicle's enabling status includes: determining whether there are other vehicles with their high beams on behind the target vehicle based on the ambient brightness value; if there are other vehicles with their high beams on behind the target vehicle, and the target vehicle's enabling status indicates that the camera equipment is in a non-faulty state, and the target vehicle's enabling status indicates that the target vehicle has activated the low-light driving mode, then it is determined that the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror.

[0007] In the above technical solution, the presence of vehicles with high beams on behind the vehicle, the status of the camera equipment, and the vehicle's driving mode are combined as prerequisites for activating the anti-glare detection. This triple verification condition prevents the anti-glare detection from being mistakenly activated, thus avoiding the waste of resources caused by frequent use of the anti-glare detection.

[0008] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining whether there are other vehicles with high beams turned on behind the target vehicle based on the ambient brightness value includes: monitoring the target ambient brightness value and brightness distribution characteristics behind the target vehicle; if the maximum ambient brightness value in the target ambient brightness value is greater than a first brightness threshold and the brightness distribution characteristics meet the light concentration distribution condition, then it is determined that there are other vehicles with high beams turned on behind the target vehicle.

[0009] Combining the first aspect and the above implementation methods, in some possible implementation methods, the brightness distribution characteristics include the spot area and the halo diffusion. The step of determining that there are other vehicles with high beams on behind the target vehicle if the maximum ambient brightness value in the target ambient brightness value is greater than the first brightness threshold and the brightness distribution characteristics meet the light concentration distribution condition includes: obtaining the maximum ambient brightness value in the target ambient brightness value, obtaining the spot area formed by the pixels corresponding to the target ambient brightness value that meets the second brightness threshold, and obtaining the halo diffusion at the edge of the spot area; if the maximum ambient brightness value is greater than the first brightness threshold, and the area of ​​the spot area is less than a preset area threshold, and the halo diffusion is less than a preset diffusion threshold, then it is determined that there are other vehicles with high beams on behind the target vehicle, and the first brightness threshold is greater than or equal to the second brightness threshold.

[0010] The above technical solution combines brightness value, spot area and halo diffusion to determine high beam headlights, which improves the accuracy of high beam headlight determination and thus improves the accuracy of anti-glare detection activation.

[0011] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining whether there are other vehicles with high beams turned on behind the target vehicle based on the ambient brightness value includes: monitoring the brightness change rate of the target ambient brightness value behind the target vehicle within a preset time period; if the brightness change rate is greater than a preset change rate threshold, then it is determined that there are other vehicles with high beams turned on behind the target vehicle.

[0012] In the above technical solution, by capturing the characteristic of a sharp increase in the brightness of the light source, the high beam is determined based on the dynamic changes in ambient brightness, which improves the efficiency and accuracy of high beam determination, and thus improves the accuracy of determining whether the anti-glare detection is turned on.

[0013] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, before the step of determining the exposure control parameters used for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions, the method further includes: obtaining the occlusion state of the camera lens; if the occlusion state is unoccluded, then the preset first brightness value is determined as the target brightness value; if the occlusion state is partially occluded, then the preset second brightness value is determined as the target brightness value, and the second brightness value is less than the first brightness value; if the occlusion state is completely occluded, then a prompt message is output to prompt the user to adjust the camera lens.

[0014] In the above technical solution, the lens occlusion status of the camera device is obtained, and different target brightness values ​​are set for the unoccluded state and the partially occluded state. The target brightness value for the partially occluded state is lower than that for the unoccluded state. This avoids the reduction of light intake due to partial occlusion of the camera device lens, which would lead to overexposure compensation. In this way, it prevents the anti-glare function from being accidentally activated due to abnormal spikes in exposure control parameters when the lens is dirty, thereby improving the reliability of anti-glare control.

[0015] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of determining the exposure control parameters used for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions includes: if the target vehicle meets the opening conditions, determining the average brightness value of the environment based on the ambient brightness value; and determining the exposure control parameters used for brightness processing of the average brightness value based on the average brightness value and the target brightness value.

[0016] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the exposure control parameters include exposure time and gain value. The step of determining the exposure control parameters used for brightness processing of the average brightness value based on the average brightness value and the target brightness value includes: obtaining the brightness difference between the target brightness value and the average brightness value; and determining the exposure time and gain value required for the camera device to perform brightness processing based on the brightness difference.

[0017] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, the step of controlling the anti-glare of the rearview mirror based on exposure control parameters includes: if the exposure time is less than a first time threshold and the gain value is greater than the first gain threshold, then controlling the light transmittance of the rearview mirror to decrease to a first light transmittance; if the exposure time is greater than a second time threshold and the gain value is less than the second gain threshold, then controlling the light transmittance of the rearview mirror to decrease to a second light transmittance, where the second time threshold is greater than the first time threshold, the second gain threshold is less than the first gain threshold, and the second light transmittance is less than the first light transmittance; if the exposure time is greater than a third time threshold and the gain value is greater than the third gain threshold, then controlling the light transmittance of the rearview mirror to decrease to a third light transmittance, where the third time threshold is greater than the second time threshold, the third gain threshold is greater than the first gain threshold, and the third light transmittance is less than the second light transmittance.

[0018] In the above technical solution, different anti-glare control strategies are set for different combinations of exposure time and gain value, and the anti-glare function is finely adaptively controlled to ensure a dynamic balance between safe driving and driving experience.

[0019] Secondly, a vehicle rearview mirror control device is provided, the device comprising: A brightness acquisition unit is used to acquire the ambient brightness value of the environment in which the target vehicle is located based on the camera equipment. The anti-glare detection and determination unit is used to determine whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror based on the ambient brightness value and the enabling status of the target vehicle. The control parameter determination unit is used to determine the exposure control parameters for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions. Anti-glare control unit, used to control the anti-glare of the rearview mirror based on exposure control parameters.

[0020] Thirdly, a vehicle is provided, the vehicle including: a memory for storing executable program code; A processor for calling and running executable program code from memory to perform the methods in the first aspect or any possible implementation of the first aspect described above.

[0021] Fourthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0022] Fifthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description

[0023] Figure 1 This is a system architecture diagram of a vehicle rearview mirror control method provided in an embodiment of this application; Figure 2 This is a flowchart illustrating a vehicle rearview mirror control method provided in an embodiment of this application; Figure 3 This is a flowchart illustrating a vehicle rearview mirror control method provided in an embodiment of this application; Figure 4 This is a flowchart illustrating a high beam determination method provided in an embodiment of this application; Figure 5 This is a flowchart illustrating a high beam determination method provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a vehicle rearview mirror control device provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application. Detailed Implementation

[0024] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0025] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0026] Rearview mirrors in vehicles follow the law of reflection, where the angle of incidence equals the angle of reflection. When a vehicle is driving at night or in low-light conditions and is illuminated by the high beams of a vehicle behind, the rearview mirror reflects the received glare directly into the driver's eyes. In low-light conditions, the pupils of the human eye are dilated to adapt to the low light. The sudden appearance of strong reflected light creates a huge brightness difference with the surrounding low-light environment, far exceeding the instantaneous adaptation capacity of the human eye. This causes the driver to be unable to see the road ahead and the surrounding environment for a short period, easily leading to rear-end collisions, lane departures, or collisions with obstacles. To prevent glare from reflected glare, related technologies activate anti-glare functions when strong light is detected behind the vehicle, controlling the light transmittance of the rearview mirror. However, relying solely on light intensity to control the activation of the anti-glare function is prone to false activation due to complex changes in ambient light (alternating light and dark in tunnels, flashing lights from vehicles behind), making it impossible to accurately distinguish between real glare and normal lighting conditions.

[0027] To address the aforementioned problems, this application provides a method for controlling a vehicle rearview mirror. Please refer to... Figure 1 The diagram below illustrates a system architecture for a vehicle rearview mirror control method, as provided in this application embodiment. Figure 1 As shown, the vehicle includes a rearview mirror, a camera device, and an in-vehicle terminal. The rearview mirror is used by the driver to observe the rear view of the vehicle. The camera device is used to acquire the ambient brightness value of the environment in which the vehicle is located, and performs brightness processing on the ambient brightness value to determine the exposure control parameters. It can at least acquire a panoramic view of the rear of the vehicle. Optionally, the camera device can be a 360° panoramic camera or a rearview camera capable of acquiring a panoramic view of the rear of the vehicle. The in-vehicle terminal is an electronic device on the vehicle with data acquisition and data processing capabilities. It establishes communication connections with functional modules such as the rearview mirror and the camera device through communication protocols such as the Controller Area Network (CAN) bus to acquire information transmitted by each functional module and control each functional module. In this embodiment, after determining the exposure control parameters, the camera device sends the exposure control parameters to the in-vehicle terminal via the CAN bus, and the in-vehicle terminal determines whether to perform anti-glare control on the rearview mirror.

[0028] The imaging device includes a lens, a complementary metal-oxide-semiconductor image sensor (CMOS sensor), an analog-to-digital converter (ADC), and an image signal processor. The lens collects and focuses ambient light. The CMOS sensor consists of millions of tiny photosensitive units, each a pixel. At the core of each pixel is a photodiode, which receives light passing through the lens. When light strikes the photodiode, photons are absorbed by the semiconductor material, generating electron-hole pairs. These electrons are collected to form a charge proportional to the incident light intensity; the stronger the light, the greater the charge. The photosensitive pixels in the CMOS sensor are arranged in a matrix, covering the entire imaging area. Each pixel independently records the light intensity information received at its location. The ADC quantizes the analog voltage signal output from the CMOS sensor into discrete, digitally represented brightness values, which are the ambient brightness values ​​acquired by the imaging device. The image signal processor is used to process the ambient light value output by the analog-to-digital converter to make the average brightness value of the ambient light value close to the pre-calibrated target brightness value through exposure control parameters. The target brightness value is a reference brightness value preset in the image signal processor to drive the automatic exposure closed-loop adjustment. Its core significance is to transform the volatile brightness into stable exposure control parameters, so that these parameters become a reliable basis for judging ambient light.

[0029] In this embodiment, an ambient brightness value of the vehicle's environment is acquired using a camera installed in the vehicle. This ambient brightness value, combined with the vehicle's enabled state, is used to determine whether the vehicle meets the activation conditions for anti-glare detection set for the rearview mirror. When the vehicle meets the activation conditions, exposure control parameters required for brightness processing of the ambient brightness value are determined based on the ambient brightness value and a pre-set target brightness value. Anti-glare control is then applied to the rearview mirror based on these exposure control parameters. Since the exposure control parameters are physical control quantities that undergo closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, they reflect the long-term trend of ambient light rather than an instantaneous state. Therefore, determining whether to apply anti-glare control using exposure control parameters during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability.

[0030] based on Figure 1 The system architecture diagram shown below will be used in conjunction with... Figures 2-5 This application provides a detailed description of the vehicle rearview mirror control method provided in the embodiments.

[0031] Please see Figure 2This is a flowchart illustrating a vehicle rearview mirror control method provided in an embodiment of this application. Figure 2 As shown, the method in this application embodiment may include the following steps S101-S104.

[0032] S101, Based on the camera equipment, obtain the ambient brightness value of the environment in which the target vehicle is located; Specifically, the vehicle includes a rearview mirror and a camera device. The camera device acquires the ambient brightness value of the environment in which the target vehicle is located. In low-light environments, the rearview mirror easily receives strong glare from vehicles behind, causing glare to the driver. To determine whether the current driving environment meets the low-light requirements, or to determine whether there is a vehicle emitting strong light behind the target vehicle, this embodiment uses a camera device to acquire the ambient brightness value of the environment in which the target vehicle is located. The ambient brightness value is a numerical value that quantifies the overall light level of the external environment in which the vehicle is located, collected and calculated by the camera device. The ambient brightness value output by the camera device is a two-dimensional numerical matrix. Each element in the matrix corresponds to a pixel of the CMOS sensor in the camera device, and the value of this element is the original brightness sensed by its corresponding pixel.

[0033] Optionally, the analog-to-digital converter in the camera device can have 8, 10, 12, or higher bits. When the bit depth is 8, the ambient brightness value ranges from [0, 255]; when the bit depth is 10, the ambient brightness value ranges from [0, 1024]. The analog-to-digital converter quantizes the analog voltage signal output by the CMOS sensor into a digital brightness value. If the light intensity reaches the maximum value (saturation voltage) that the CMOS sensor can record, the maximum value that the analog-to-digital converter can represent is output (e.g., 255 for 8 bits). If the voltage corresponding to the light intensity is at the middle value of the CMOS sensor, it is proportionally quantized to the middle value of the range of the analog-to-digital converter.

[0034] S102, based on the ambient brightness value and the enabled status of the target vehicle, determine whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror. Specifically, in order to avoid frequent activation of anti-glare detection, this embodiment of the application pre-sets the activation conditions for anti-glare detection of the rearview mirror in the vehicle terminal. After the camera device obtains the ambient brightness value, it sends the ambient brightness value to the vehicle terminal. The vehicle terminal then determines whether the target vehicle meets the activation conditions for anti-glare detection set for the rearview mirror based on the ambient brightness value and the enabling status of the target vehicle.

[0035] The enabling status of the target vehicle includes the enabling status of the camera equipment and the enabling status of the vehicle's lights. The camera equipment's enabling status indicates whether the camera equipment is turned on and whether it is faulty. After the camera equipment is turned on, it performs a power-on self-test and periodically performs fault diagnosis during operation. The diagnostic results are sent to the vehicle terminal via the CAN bus. For example, when the camera equipment is in a non-faulty state, it can send signal 0 to the vehicle terminal; when the camera equipment is in a faulty state, it can send signal 1 to the vehicle terminal. The light enabling status indicates whether the lights are on. After the target vehicle's lights are turned on, the body controller or the vehicle's lighting controller sends the light status signal to the vehicle terminal via the CAN bus. For example, when all the target vehicle's lights are off, signal 0 can be sent to the vehicle terminal; when the target vehicle's low beam headlights are on, signal 1 can be sent to the vehicle terminal; when the target vehicle's high beam headlights are on, signal 2 can be sent to the vehicle terminal. Due to the different senders, the vehicle terminal determines the information obtained based on the sender and the signal.

[0036] S103, if the target vehicle meets the opening conditions, then based on the ambient brightness value and the preset target brightness value, determine the exposure control parameters used for brightness processing of the ambient brightness value; Specifically, if the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror, the exposure control parameters used for brightness processing of the ambient brightness value are determined based on the ambient brightness value acquired by the camera and the target brightness value preset in the camera. The target brightness value is a reference brightness value preset in the image signal processor of the camera. The target brightness value is used by the image signal processor to perform automatic exposure closed-loop adjustment on the acquired raw ambient brightness value. The ambient brightness value, represented by the target brightness value acquired by the camera, indicates the ideal image brightness level desired by the image processing algorithm in the image signal processor. To make the raw ambient brightness value reach the target brightness value, the image signal processor performs brightness processing on the ambient brightness value. The exposure time and gain value used in this process are called exposure control parameters.

[0037] S104, anti-glare control of the rearview mirror based on exposure control parameters.

[0038] Specifically, this application embodiment uses exposure control parameters to control the anti-glare function of the rearview mirror. During driving, vehicles may encounter scenes with alternating light conditions, which can easily lead to false triggering of the anti-glare function. Exposure control parameters are physical control quantities used by the image signal processor to adapt to ambient light. They reflect the cost incurred by the camera device to achieve the preset image quality, thus essentially and stably quantifying the true intensity of ambient light.

[0039] This application embodiment achieves anti-glare control of the rearview mirror by adjusting its light transmittance. The core material of the rearview mirror is an electrochromic material (such as tungsten trioxide). This material allows the rearview mirror to undergo a reversible electrochemical reaction under voltage control, thereby changing the color depth of the rearview mirror. Light transmittance is the ratio of the intensity of transmitted light to the intensity of incident light when light shines on the mirror surface. By applying a control voltage to the rearview mirror to reduce its light transmittance, the intensity of light received by the rearview mirror from behind the vehicle is attenuated, so that the brightness of the light reflected by the rearview mirror is acceptable to the human eye, while maintaining basic visibility of the dark environment behind, thus achieving anti-glare control of the rearview mirror.

[0040] In this embodiment, an ambient brightness value of the vehicle's environment is acquired using a camera installed in the vehicle. This ambient brightness value, combined with the vehicle's enabled state, is used to determine whether the vehicle meets the activation conditions for anti-glare detection set for the rearview mirror. When the vehicle meets the activation conditions, exposure control parameters required for brightness processing of the ambient brightness value are determined based on the ambient brightness value and a pre-set target brightness value. Anti-glare control is then applied to the rearview mirror based on these exposure control parameters. Since the exposure control parameters are physical control quantities that undergo closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, they reflect the long-term trend of ambient light rather than an instantaneous state. Therefore, determining whether to apply anti-glare control using exposure control parameters during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability.

[0041] Please see Figure 3 This is a flowchart illustrating a vehicle rearview mirror control method provided in an embodiment of this application. Figure 3 As shown, the method in this application embodiment may include the following steps S201-S212.

[0042] S201, Obtain the ambient brightness value of the environment in which the target vehicle is located based on the camera equipment; Please refer to step S101 for the specific process, which will not be repeated here.

[0043] S202, Determine whether there are other vehicles with high beams on behind the target vehicle based on the ambient brightness value; Specifically, to avoid frequent activation of the anti-glare detection, this application embodiment pre-sets the activation conditions for the anti-glare detection of the rearview mirror in the vehicle terminal. The activation conditions include whether there are other vehicles with their high beams on behind the target vehicle. Therefore, after the camera device obtains the ambient brightness value, it sends the ambient brightness value to the vehicle terminal via the CAN bus, and the vehicle terminal determines whether there are other vehicles with their high beams on behind the target vehicle.

[0044] High beams and low beams have different light characteristics. By pre-setting high beam detection conditions in the vehicle terminal based on these characteristics, the terminal can determine whether other vehicles with high beams on are behind the target vehicle, based on ambient light levels. High beams are designed to be concentrated and parallel, resulting in highly focused light that is directly reflected back to the driver's eyes, creating extremely high brightness peaks in a localized area of ​​the retina, far exceeding the human eye's instantaneous adaptation range, thus causing glare. Low beams, on the other hand, lower and diffuse the beam, primarily illuminating the road ahead. The light is directed towards the ground and dispersed, resulting in weaker light intensity entering the driver's eyes through the rearview mirror, preventing glare. Therefore, using the presence of other vehicles with high beams on behind the target vehicle as one of the conditions for activating anti-glare detection effectively improves the rigor of the detection process.

[0045] S203, if there are other vehicles with their high beams on behind the target vehicle, and the target vehicle's enabled state indicates that the camera equipment is in a non-faulty state, and the target vehicle's enabled state indicates that the target vehicle has activated the low-light driving mode, then it is determined that the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror. Specifically, the activation conditions for anti-glare detection set in the vehicle terminal also include the enabled state of the target vehicle. The enabled state of the target vehicle includes the enabled state of the camera equipment and the enabled state of the target vehicle's own lights. Therefore, if there are other vehicles with their high beams on behind the target vehicle, and the enabled state of the target vehicle indicates that the camera equipment is in a non-faulty state, and the enabled state of the target vehicle indicates that the target vehicle has activated the low-light driving mode, then it is determined that the target vehicle meets the activation conditions for anti-glare detection set for the rearview mirror.

[0046] The camera's enable status indicates whether the camera is turned on and whether it is faulty. After being turned on, the camera performs a power-on self-test and periodically diagnoses faults during operation. The diagnostic results are sent to the vehicle terminal via the CAN bus. For example, when the camera is in a non-faulty state, it can send signal 0 to the vehicle terminal; when the camera is in a faulty state, it can send signal 1. The headlight enable status indicates whether the lights are on. After the target vehicle's lights are turned on, the body controller or the vehicle's headlight controller sends a headlight status signal to the vehicle terminal via the CAN bus. For example, when all the target vehicle's lights are off, signal 0 is sent to the vehicle terminal; when the target vehicle's low beam headlights are on, signal 1 is sent; and when the target vehicle's high beam headlights are on, signal 2 is sent.

[0047] It should be noted that if the camera status signal received by the vehicle terminal indicates that the camera is in a faulty state, a prompt message will be output to remind the user to have the camera inspected. The prompt message can be displayed as text on the vehicle's display screen or played as audio through the vehicle's speakers.

[0048] If the vehicle terminal receives a light status signal indicating that the target vehicle's low beam or high beam headlights are on, it is determined that the target vehicle has activated low-light driving mode. Low-light driving modes include night mode, tunnel mode, dusk mode, and dawn mode, which are modes for driving in low-light environments. Due to the inherent darkness of tunnels, tunnel mode can be activated both at night and during the day. In low-light driving mode, the strong light from behind the target vehicle can easily dazzle the driver; therefore, low-light driving mode is used as one of the conditions for activating anti-glare detection.

[0049] In one feasible implementation, since the camera device can acquire the ambient brightness value of the environment in which the target vehicle is located, it can also determine whether the target vehicle is in low-light driving mode based on the ambient brightness value. The specific process is as follows: a preset brightness threshold for the target vehicle to enter low-light driving mode is pre-set. After the camera device acquires the ambient brightness value, the average brightness value of the environment in which the target vehicle is located is determined based on the ambient brightness value of each pixel and the number of pixels. The average brightness value is compared with the preset brightness threshold. If the average brightness value is less than the preset brightness threshold, it is determined that the vehicle has activated low-light driving mode; if the average brightness value is greater than or equal to the preset brightness threshold, it is determined that the vehicle has not activated low-light driving mode.

[0050] S204, Obtain the occlusion status of the camera lens; Specifically, the camera equipment includes a lens used to collect and focus ambient light. After determining that the target vehicle meets the conditions for activating anti-glare detection, the occlusion status of the lens in the camera equipment is acquired. In real driving environments, lenses are easily partially or completely blocked by objects such as rain, snow, sand, mud, or insects. These obstructions alter the light propagation path, weaken the light intensity received by the lens, and introduce non-ambient light signals. This leads to distortion of the light signal received by the CMOS sensor in the camera equipment, resulting in a lower ambient brightness value than when the lens is not obstructed. Because the ambient brightness value acquired when the lens is obstructed is lower, if the image signal processor in the camera equipment attempts to increase the image brightness to a normal standard, it needs to drastically increase the exposure control parameters. This will cause the unobstructed area to become overexposed, resulting in whitening distortion and a significant increase in noise. Therefore, the target brightness value when the lens is obstructed should be lower than the target brightness value when the lens is not obstructed. The target brightness value is a reference brightness value preset in the image signal processor (Image Signal Processor) of the camera device. It is used by the Image Signal Processor to perform automatic exposure closed-loop adjustment on the acquired raw ambient brightness value. The ambient brightness value, as acquired by the camera device, represents the ideal image brightness level desired by the image processing algorithm in the Image Signal Processor. To ensure the raw ambient brightness value reaches the target brightness value, the Image Signal Processor performs brightness processing on the ambient brightness value. The exposure time and gain values ​​used in this process are called exposure control parameters.

[0051] This application embodiment incorporates an occlusion detection algorithm within the image signal processor of the camera device. This algorithm analyzes the contrast, sharpness, and brightness distribution characteristics of the image output from the CMOS sensor to determine the occlusion state of the camera lens. If an abnormal and fixed blurred area is detected in the image, the lens is determined to be partially occluded; if global detail loss is detected, the lens is determined to be completely occluded; if all feature values ​​in the image are within the normal range, the lens is determined to be unoccluded.

[0052] S205, if the occlusion state is unoccluded, then the preset first brightness value is determined as the target brightness value; Specifically, the image signal processor has multiple pre-set brightness values ​​corresponding to different lens occlusion states. After determining the lens occlusion state, the target brightness value to be achieved is determined based on the occlusion state. If the occlusion state is unoccluded, the pre-set first brightness value is determined as the target brightness value.

[0053] S206, if the occlusion state is a partial occlusion state, then the preset second brightness value is determined as the target brightness value; Specifically, if the occlusion is partial, the preset second brightness value is determined as the target brightness value. Since the ambient brightness value obtained by the lens in the partial occlusion state is lower, the target brightness value corresponding to the partial occlusion state should be lower than the target brightness value corresponding to the unoccluded state, that is, the second brightness value is less than the first brightness value.

[0054] It should be noted that the second brightness value includes at least one brightness value. The image signal processor can also determine the proportion of the lens obscured portion to the entire lens based on the ratio of the blurred area to the overall image area, and set multiple different second brightness values ​​according to the proportion. The more of the lens is obscured, the smaller the second brightness value.

[0055] S207, if the obstruction state is completely obstructed, a prompt message will be output to prompt the user to adjust the lens of the camera device; Specifically, if the obstruction is complete, the camera will be unable to capture the true ambient brightness value. In this case, a warning message needs to be output to prompt the user to adjust the camera lens and remove any obstructions to prevent accidents. The warning message can be displayed as text on the vehicle's screen or played as audio through the vehicle's speakers.

[0056] S208, If the target vehicle meets the opening conditions, the average brightness value of the environment is determined based on the ambient brightness value. Specifically, when it is determined that the target vehicle meets the opening conditions described in step S203, the average brightness value of the environment in which the target vehicle is located is determined based on the ambient brightness value previously determined by the camera device. The specific process is as follows: Based on the ambient brightness value of each pixel and the number of pixels, the average brightness value of the environment in which the target vehicle is located is determined. The sum of the ambient brightness values ​​of each pixel is obtained, and then the ratio of this sum to the number of pixels is obtained; this ratio is then determined as the average brightness value.

[0057] It should be noted that if step S203 determines whether the vehicle has activated the low-light driving mode by comparing the average brightness value with the preset brightness threshold, then step S208 does not need to calculate the average brightness value again.

[0058] S209, Based on the average brightness value and the target brightness value, determine the exposure control parameters used for brightness processing of the average brightness value; In one feasible implementation, the brightness difference between the target brightness value and the average brightness value is obtained, and the exposure time and gain value required for brightness processing by the camera device are determined based on the brightness difference. The image signal processor has a built-in automatic exposure control algorithm. This algorithm, based on the brightness difference, forms a closed-loop feedback control circuit to gradually adjust the exposure time and gain value, ultimately ensuring that the image brightness output by the camera device reaches the target brightness value.

[0059] Exposure time refers to the duration for which the photodiode of each pixel in a CMOS image sensor receives light. A longer exposure time results in more accumulated charge and a stronger analog voltage signal. Gain refers to the factor by which the analog voltage signal is amplified before mode switching. Higher gain amplifies the analog voltage signal more, but it also amplifies noise, causing "snow" in the image. The automatic exposure algorithm calculates the total exposure adjustment based on the magnitude and direction of the brightness difference. If the brightness difference is positive, the adjustment direction is positive, increasing the exposure time and / or gain; if the brightness difference is negative, the adjustment direction is negative, decreasing the exposure time and / or gain. The magnitude of the brightness difference represents the magnitude of the total exposure adjustment. The total exposure is achieved gradually within a closed-loop feedback control loop, which can be expressed by the formula: New total exposure = Current total exposure × (Target brightness value / Current average brightness value). In the closed-loop feedback control loop, the image signal processor continuously adjusts the exposure time and / or gain value. During the adjustment process, it acquires the current average brightness value after adjustment and the current total exposure reached by the exposure time and / or gain value in real time. It then calculates the new total exposure value until the new total exposure value reaches the total exposure value determined by the brightness difference. The image brightness output by the camera device stabilizes near the target brightness value. The exposure time and gain value that stabilize the image brightness output by the camera device near the target brightness value are determined as the exposure control parameters required in the embodiments of this application.

[0060] It should be noted that since excessive exposure time can lead to image blurring and excessive gain can lead to increased image noise, the final combination of exposure control parameters may be "high gain + short exposure" and "low gain + long exposure". In extreme cases, the combination of exposure parameters may be "high gain + long exposure".

[0061] S210, if the exposure time is less than the first time threshold and the gain value is greater than the first gain threshold, then control the light transmittance of the rearview mirror to be reduced to the first light transmittance. Specifically, the image signal processor sends the acquired exposure time and gain value to the vehicle terminal, which has pre-set boundary values ​​for the exposure control parameters required for anti-glare control of the rearview mirror. The exposure time and the pre-set gain value in the vehicle terminal are compared. If the exposure time is less than a first time threshold and the gain value is greater than a first gain threshold, the exposure parameter combination is determined to be "high gain + short exposure," controlling the light transmittance of the rearview mirror to decrease to a first transmittance level. Under high gain, the CMOS sensor is sensitive to light, but short exposure limits the total amount of light entering the vehicle. Therefore, the vehicle terminal needs to quickly perform anti-glare control on the rearview mirror to suppress strong light glare while preventing the rearview mirror image from becoming too dark.

[0062] This application embodiment achieves anti-glare control of the rearview mirror by adjusting its light transmittance. The core material of the rearview mirror is an electrochromic material (such as tungsten trioxide). This material allows the rearview mirror to undergo a reversible electrochemical reaction under voltage control, thereby changing the color depth of the rearview mirror. Light transmittance is the ratio of the intensity of transmitted light to the intensity of incident light when light shines on the mirror surface. By applying a control voltage to the rearview mirror to reduce its light transmittance, the intensity of light received by the rearview mirror from behind the vehicle is attenuated, so that the brightness of the light reflected by the rearview mirror is acceptable to the human eye, while maintaining basic visibility of the dark environment behind, thus achieving anti-glare control of the rearview mirror.

[0063] In one feasible implementation, the anti-glare control of the rearview mirror can also be achieved by adjusting the reflectivity of the rearview mirror. Reflectivity refers to the ratio of the intensity of reflected light to the intensity of incident light after light shines on the mirror surface.

[0064] S211, if the exposure time is greater than the second time threshold and the gain value is less than the second gain threshold, then control the light transmittance of the rearview mirror to be reduced to the second light transmittance. Specifically, if the exposure time is greater than the second time threshold and the gain value is less than the second gain threshold, then the exposure control parameter combination is determined to be "low gain + long exposure," controlling the light transmittance of the rearview mirror to decrease to the second light transmittance. Here, the second time threshold is greater than the first time threshold, the second gain threshold is less than the first gain threshold, and the second light transmittance is less than the first light transmittance.

[0065] At low gain, the sensor sensitivity is low, but long exposures accumulate more light, easily causing overexposure or glare. Therefore, a lower transmittance is needed to reduce the amount of light entering the vehicle, while the vehicle terminal uses a slower response speed to control the anti-glare of the rearview mirror to achieve a smooth transition and avoid abrupt changes in the image.

[0066] S212, if the exposure time is greater than the third time threshold and the gain value is greater than the third gain threshold, then control the light transmittance of the rearview mirror to be reduced to the third light transmittance.

[0067] Specifically, if the exposure time is greater than the third time threshold and the gain value is greater than the third gain threshold, then the exposure control parameter combination is determined to be "high gain + long exposure," controlling the light transmittance of the rearview mirror to decrease to the third light transmittance. Here, the third time threshold is greater than the second time threshold, the third gain threshold is greater than the first gain threshold, and the third light transmittance is less than the second light transmittance.

[0068] The third transmittance is 0%. At the limit of gain, the sensor is extremely sensitive, and any strong light could cause severe glare or damage to the sensor. Therefore, the transmittance is immediately reduced to near 0% to completely block strong light, protect the equipment, and ensure visual safety.

[0069] In this embodiment, since the exposure control parameter is a physical control quantity that performs closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, and reflects the long-term trend of ambient light rather than its instantaneous state, determining whether to perform anti-glare control through the exposure control parameter during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability. The presence of vehicles with high beams on behind the vehicle, the status of the camera equipment, and the vehicle's driving mode are combined as prerequisites for activating anti-glare detection. This triple verification prevents false activation of anti-glare detection and avoids resource waste caused by frequent use of anti-glare detection. The lens occlusion status of the camera equipment is obtained, and different target brightness values ​​are set for the unoccluded and partially occluded states. The target brightness value for the partially occluded state is lower than that for the unoccluded state, preventing reduced light intake due to partial lens occlusion, which could lead to overexposure compensation. This prevents false activation of anti-glare due to abnormal spikes in exposure control parameters when the lens is dirty, thus improving the reliability of anti-glare control. Different anti-glare control strategies are set for different combinations of exposure time and gain value, and the anti-glare function is finely adaptively controlled to ensure a dynamic balance between safe driving and driving experience.

[0070] Please see Figure 4 This is a flowchart illustrating a method for determining high beam headlights, as provided in an embodiment of this application. Figure 4 As shown, the method in this application embodiment may include the following steps S301-S302.

[0071] S301, monitor the target environment brightness value and brightness distribution characteristics behind the target vehicle; Specifically, all light rays behind the target vehicle may illuminate the rearview mirror, causing glare to the driver. Therefore, camera equipment is used to monitor the ambient light value and light distribution characteristics of the target environment within the rear field of view of the target vehicle. The light distribution characteristics are the conditions for determining high beams and low beams, pre-set in the vehicle terminal based on the light characteristics of high beams and low beams.

[0072] High beam headlights are designed to emit a concentrated, parallel beam. This highly focused light is reflected directly back to the driver's eyes along the incident direction, creating an extremely high brightness peak in a localized area of ​​the retina, far exceeding the instantaneous adaptation range of the human eye, thus causing glare. Low beam headlights, on the other hand, lower and diffuse the beam, primarily illuminating the road ahead. The light is directed towards the ground and dispersed in intensity, resulting in a weaker light intensity entering the driver's eyes through the rearview mirrors, preventing glare.

[0073] S302, if the maximum ambient brightness value in the target ambient brightness value is greater than the first brightness threshold, and the brightness distribution characteristics meet the light concentration distribution condition, then it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0074] Specifically, the peak brightness value in the target ambient brightness value is compared with a pre-set first brightness threshold. If the maximum ambient brightness value is greater than the first brightness threshold, and there is a small concentrated area in the target ambient brightness value of each pixel within the visual field area behind the target vehicle (i.e., the brightness distribution characteristics meet the light concentration distribution condition), then it is determined that there are other vehicles with high beams on behind the target vehicle. The first brightness threshold is used to determine whether there are bright pixels among the pixels corresponding to the target ambient brightness value.

[0075] In one feasible implementation, the brightness distribution features include spot area and halo diffusion. The maximum ambient brightness value in the target ambient brightness value is obtained, the spot area formed by the pixel corresponding to the target ambient brightness value that satisfies the second brightness threshold is obtained, and the halo diffusion at the edge of the spot area is obtained. If the maximum ambient brightness value is greater than the first brightness threshold, and the area of ​​the spot area is less than the preset area threshold, and the halo diffusion is less than the preset diffusion threshold, then it is determined that there are other vehicles with high beams on behind the target vehicle, and the first brightness threshold is greater than or equal to the second brightness threshold.

[0076] The second brightness threshold can be the boundary brightness value for high beam determination. The spot area is the bright area in the field of view corresponding to the target environment brightness value, that is, the area where bright pixels are concentrated. High beams often have small bright spot areas. Therefore, the area of ​​the spot area is compared with the preset area threshold to determine whether it meets the characteristics of high beams. The preset area threshold is the value that meets the spot area produced by various types of high beams. The halo diffusion is used to quantify the rate of brightness decay at the edge of the spot area to describe whether the transition from the bright spot area to the surrounding dark background is "sharp" or "blurred". The lower the halo diffusion, the faster the brightness decays and the sharper the edge of the spot area; the higher the halo diffusion, the slower the brightness decays and the more blurred and soft the edge of the spot area.

[0077] In this embodiment, the brightness value, the area of ​​the light spot region, and the halo diffusion are combined to determine the high beam, which improves the accuracy of the high beam determination and thus improves the accuracy of the determination of the anti-glare detection being turned on.

[0078] Please see Figure 5 This is a flowchart illustrating a method for determining high beam headlights, as provided in an embodiment of this application. Figure 5 As shown, the method in this application embodiment may include the following steps S401-S402.

[0079] S401, monitor the rate of change of the brightness of the target environment behind the target vehicle within a preset time period; Specifically, when a vehicle turns on its lights and switches between lights, the brightness change rate differs between low beams and high beams due to their different light characteristics. Therefore, by monitoring the brightness change rate of the target environment within the rear field of view of the target vehicle over a preset time period using camera equipment, high beam detection can be performed. The brightness change rate is used to quantify the dynamic changes in the target environment brightness value over the preset time period.

[0080] S402, if the brightness change rate is greater than the preset change rate threshold, then it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0081] Specifically, if the rate of change in brightness exceeds a preset threshold, it is determined that there are other vehicles with their high beams on behind the target vehicle. Under stable illumination, the rate of change in brightness for both low beams and high beams is approximately zero. However, when lights are switched on or off, the high beams are more concentrated and brighter than the low beams, resulting in a more dramatic and rapid rate of change in brightness compared to the low beams. In other words, the rate of change in brightness for high beams is greater than that for low beams. The preset threshold is a value representing the rate of change in brightness generated within a preset time period when various types of high beams are on.

[0082] In this embodiment, by capturing the characteristic of a sharp increase in the brightness of the light source, the high beam is determined based on the dynamic changes in ambient brightness, thereby improving the efficiency and accuracy of high beam determination and thus improving the accuracy of the determination of anti-glare detection activation.

[0083] based on Figure 1 The system architecture diagram will be presented below, in conjunction with... Figure 6 This application provides a detailed description of the vehicle rearview mirror control device provided in its embodiments. It should be noted that... Figure 6 The vehicle rearview mirror control device in the present application is used to perform the functions described herein. Figures 2-5 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figures 2-5 The example shown.

[0084] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a vehicle rearview mirror control device provided in an embodiment of this application. Figure 6 As shown, the vehicle rearview mirror control device 1 in this application embodiment may include: a brightness acquisition unit 11, an anti-glare detection and determination unit 12, a control parameter determination unit 13, and an anti-glare control unit 14.

[0085] Brightness acquisition unit 11 is used to acquire the ambient brightness value of the environment in which the target vehicle is located based on the camera device; The anti-glare detection judgment unit 12 is used to determine whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror based on the ambient brightness value and the enabling status of the target vehicle. The control parameter determination unit 13 is used to determine the exposure control parameters for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions. Anti-glare control unit 14 is used to control the anti-glare of the rearview mirror based on exposure control parameters.

[0086] Optionally, the anti-glare detection and determination unit 12 is specifically used to determine whether there are other vehicles with their high beams on behind the target vehicle based on the ambient brightness value. If there are other vehicles with their high beams on behind the target vehicle, and the target vehicle's enabled status indicates that the camera equipment is in a non-faulty state, and the target vehicle's enabled status indicates that the target vehicle has activated low-light driving mode, then it is determined that the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror.

[0087] Optionally, the anti-glare detection and judgment unit 12 is specifically used to monitor the target environment brightness value and brightness distribution characteristics behind the target vehicle; If the maximum ambient brightness value in the target environment is greater than the first brightness threshold, and the brightness distribution characteristics meet the light concentration distribution condition, then it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0088] Optionally, the brightness distribution features include the spot area and the halo diffusion. The anti-glare detection and judgment unit 12 is specifically used to obtain the maximum ambient brightness value in the target ambient brightness value, obtain the spot area formed by the pixel corresponding to the target ambient brightness value that meets the second brightness threshold in the target ambient brightness value, and obtain the halo diffusion at the edge of the spot area. If the maximum ambient brightness value is greater than the first brightness threshold, and the area of ​​the light spot region is less than the preset area threshold, and the halo diffusion is less than the preset diffusion threshold, then it is determined that there are other vehicles with their high beams on behind the target vehicle, and the first brightness threshold is greater than or equal to the second brightness threshold.

[0089] Optionally, the anti-glare detection and judgment unit 12 is specifically used to monitor the brightness change rate of the target environment brightness value behind the target vehicle within a preset time period; If the rate of change in brightness is greater than the preset rate of change threshold, it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0090] Optionally, the vehicle rearview mirror control device 1 is specifically used to obtain the occlusion status of the camera lens; If the occlusion state is unoccluded, then the preset first brightness value will be determined as the target brightness value; If the occlusion state is partial occlusion, then the preset second brightness value is determined as the target brightness value, and the second brightness value is less than the first brightness value; If the obstruction is complete, a prompt message will be displayed to remind the user to adjust the camera lens.

[0091] Optionally, the control parameter determination unit 13 is specifically used to determine the average brightness value of the environment based on the ambient brightness value if the target vehicle meets the opening conditions. Based on the average brightness value and the target brightness value, the exposure control parameters used for brightness processing of the average brightness value are determined.

[0092] Optionally, the exposure control parameters include exposure time and gain value, and the control parameter determination unit 13 is specifically used to obtain the brightness difference between the target brightness value and the average brightness value; The exposure time and gain value required for the camera device to perform brightness processing are determined based on the brightness difference.

[0093] Optionally, the anti-glare control unit 14 is specifically used to control the light transmittance of the rearview mirror to decrease to a first light transmittance if the exposure time is less than a first time threshold and the gain value is greater than a first gain threshold. If the exposure time is greater than the second time threshold and the gain value is less than the second gain threshold, then the transmittance of the rearview mirror is reduced to the second transmittance. The second time threshold is greater than the first time threshold, the second gain threshold is less than the first gain threshold, and the second transmittance is less than the first transmittance. If the exposure time is greater than the third time threshold and the gain value is greater than the third gain threshold, then the light transmittance of the rearview mirror is reduced to the third light transmittance. The third time threshold is greater than the second time threshold, the third gain threshold is greater than the first gain threshold, and the third light transmittance is less than the second light transmittance.

[0094] In this embodiment, since the exposure control parameter is a physical control quantity that performs closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, and reflects the long-term trend of ambient light rather than its instantaneous state, determining whether to perform anti-glare control through the exposure control parameter during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability. Combining the presence of vehicles with high beams on behind the vehicle, the status of the camera equipment, and the vehicle's driving mode as prerequisites for activating anti-glare detection, a triple verification condition prevents false activation of anti-glare detection and avoids resource waste caused by frequent use of anti-glare detection. Combining brightness value, spot area, and halo diffusion for high beam detection improves the accuracy of high beam detection, thereby improving the accuracy of anti-glare detection activation. By capturing the characteristic of a sharp increase in light source brightness and determining high beams based on dynamic changes in ambient brightness, the efficiency and accuracy of high beam detection are improved, further enhancing the accuracy of anti-glare detection activation. The system acquires the lens occlusion status of the camera equipment and sets different target brightness values ​​for unoccluded and partially occluded states. The target brightness value for partially occluded states is lower than that for unoccluded states. This prevents reduced light intake due to partial lens obstruction, which could lead to overexposure compensation. Furthermore, it prevents accidental activation of the anti-glare function due to abnormal spikes in exposure control parameters when the lens is dirty, thus improving the reliability of anti-glare control. Different anti-glare control strategies are set for different combinations of exposure time and gain values, enabling fine-grained adaptive control of the anti-glare function and ensuring a dynamic balance between safe driving and passenger experience.

[0095] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application.

[0096] For example, such as Figure 7 As shown, the vehicle 700 includes a processor 701 and a memory 702, wherein the processor 701 is electrically connected to the memory 702.

[0097] The processor 701 is the control center of the vehicle 700 and may include one or more processing cores. The processor 701 connects to various parts of the vehicle via various interfaces and lines, executing various vehicle functions and processing data by running or calling computer programs stored in the memory 702 and calling data stored in the memory 702, thereby providing overall control of the vehicle 700. Optionally, the processor 701 may be implemented using at least one of the following hardware forms: Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 701 may integrate one or more of the following: CPU, Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user page, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 701 and may be implemented separately using a communication chip.

[0098] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the computer programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, computer programs required for at least one function, etc.; the data storage area may store data created based on the use of the vehicle 700, etc.

[0099] Furthermore, memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 702 may also include a memory controller to provide processor 701 with access to memory 702.

[0100] In this embodiment, the processor 701 in the vehicle 700 loads the instructions corresponding to the processes of one or more computer programs into the memory 702 according to the following steps, and the processor 701 runs the computer programs stored in the memory 702 to realize various functions, as follows: The ambient brightness value of the target vehicle's environment is obtained using camera equipment; Based on the ambient brightness value and the enabled status of the target vehicle, determine whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror. If the target vehicle meets the opening conditions, the exposure control parameters used for brightness processing of the ambient brightness value are determined based on the ambient brightness value and the preset target brightness value. Anti-glare control of the rearview mirror is implemented based on exposure control parameters.

[0101] Optionally, when the processor 701 determines whether the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror based on the ambient brightness value and the target vehicle's enabled state, it specifically executes the following: Determine whether there are other vehicles with their high beams on behind the target vehicle based on the ambient brightness value; If there are other vehicles with their high beams on behind the target vehicle, and the target vehicle's enabled status indicates that the camera equipment is in a non-faulty state, and the target vehicle's enabled status indicates that the target vehicle has activated low-light driving mode, then it is determined that the target vehicle meets the activation conditions for the anti-glare detection set for the rearview mirror.

[0102] Optionally, when processor 701 performs the function of determining whether there are other vehicles with their high beams on behind the target vehicle based on the ambient brightness value, it specifically executes the following: Monitor the ambient brightness value and brightness distribution characteristics behind the target vehicle; If the maximum ambient brightness value in the target environment is greater than the first brightness threshold, and the brightness distribution characteristics meet the light concentration distribution condition, then it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0103] Optionally, the brightness distribution characteristics include the spot area and halo diffusion. When processor 701 determines that there are other vehicles with high beams on behind the target vehicle if the maximum ambient brightness value in the target environment brightness value is greater than the first brightness threshold and the brightness distribution characteristics meet the light concentration distribution condition, the specific execution is as follows: Get the maximum ambient brightness value in the target ambient brightness value, get the spot area formed by the pixel corresponding to the target ambient brightness value that meets the second brightness threshold, and get the halo diffusion of the edge of the spot area. If the maximum ambient brightness value is greater than the first brightness threshold, and the area of ​​the light spot region is less than the preset area threshold, and the halo diffusion is less than the preset diffusion threshold, then it is determined that there are other vehicles with their high beams on behind the target vehicle, and the first brightness threshold is greater than or equal to the second brightness threshold.

[0104] Optionally, when processor 701 performs the function of determining whether there are other vehicles with their high beams on behind the target vehicle based on the ambient brightness value, it specifically executes the following: Monitor the rate of change of the ambient brightness value behind the target vehicle within a preset time period; If the rate of change in brightness is greater than the preset rate of change threshold, it is determined that there are other vehicles with their high beams on behind the target vehicle.

[0105] Optionally, before executing the step of determining the exposure control parameters for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions, the processor 701 also executes: To obtain the occlusion status of the camera lens; If the occlusion state is unoccluded, then the preset first brightness value will be determined as the target brightness value; If the occlusion state is partial occlusion, then the preset second brightness value is determined as the target brightness value, and the second brightness value is less than the first brightness value; If the obstruction is complete, a prompt message will be displayed to remind the user to adjust the camera lens.

[0106] Optionally, when the processor 701 executes the step of determining the exposure control parameters for brightness processing of the ambient brightness value based on the ambient brightness value and the preset target brightness value if the target vehicle meets the opening conditions, it specifically performs the following: If the target vehicle meets the activation conditions, the average ambient brightness value is determined based on the ambient brightness value. Based on the average brightness value and the target brightness value, the exposure control parameters used for brightness processing of the average brightness value are determined.

[0107] Optionally, the exposure control parameters include exposure time and gain value. When the processor 701 determines the exposure control parameters used for brightness processing of the average brightness value based on the average brightness value and the target brightness value, it specifically executes the following: Obtain the brightness difference between the target brightness value and the average brightness value; The exposure time and gain value required for the camera device to perform brightness processing are determined based on the brightness difference.

[0108] Optionally, when processor 701 performs anti-glare control on the rearview mirror based on exposure control parameters, it specifically executes the following: If the exposure time is less than the first time threshold and the gain value is greater than the first gain threshold, then the light transmittance of the rearview mirror is reduced to the first light transmittance. If the exposure time is greater than the second time threshold and the gain value is less than the second gain threshold, then the transmittance of the rearview mirror is reduced to the second transmittance. The second time threshold is greater than the first time threshold, the second gain threshold is less than the first gain threshold, and the second transmittance is less than the first transmittance. If the exposure time is greater than the third time threshold and the gain value is greater than the third gain threshold, then the light transmittance of the rearview mirror is reduced to the third light transmittance. The third time threshold is greater than the second time threshold, the third gain threshold is greater than the first gain threshold, and the third light transmittance is less than the second light transmittance.

[0109] In this embodiment, since the exposure control parameter is a physical control quantity that performs closed-loop, smooth adjustment during brightness processing to adapt to changes in ambient light, and reflects the long-term trend of ambient light rather than its instantaneous state, determining whether to perform anti-glare control through the exposure control parameter during brightness processing reduces false triggering of the anti-glare function and improves its reliability and stability. Combining the presence of vehicles with high beams on behind the vehicle, the status of the camera equipment, and the vehicle's driving mode as prerequisites for activating anti-glare detection, a triple verification condition prevents false activation of anti-glare detection and avoids resource waste caused by frequent use of anti-glare detection. Combining brightness value, spot area, and halo diffusion for high beam detection improves the accuracy of high beam detection, thereby improving the accuracy of anti-glare detection activation. By capturing the characteristic of a sharp increase in light source brightness and determining high beams based on dynamic changes in ambient brightness, the efficiency and accuracy of high beam detection are improved, further enhancing the accuracy of anti-glare detection activation. The system acquires the lens occlusion status of the camera equipment and sets different target brightness values ​​for unoccluded and partially occluded states. The target brightness value for partially occluded states is lower than that for unoccluded states. This prevents reduced light intake due to partial lens obstruction, which could lead to overexposure compensation. Furthermore, it prevents accidental activation of the anti-glare function due to abnormal spikes in exposure control parameters when the lens is dirty, thus improving the reliability of anti-glare control. Different anti-glare control strategies are set for different combinations of exposure time and gain values, enabling fine-grained adaptive control of the anti-glare function and ensuring a dynamic balance between safe driving and passenger experience.

[0110] It should be understood that the device provided in this application embodiment is used to execute the above-described vehicle rearview mirror control method, and therefore can achieve the same effect as the above-described implementation method.

[0111] When using an integrated unit, the device may include a processing module and a storage module. When the device is applied to a vehicle, the processing module can be used to control and manage the vehicle's movements. The storage module can be used to support the vehicle in executing relevant program code.

[0112] The processing module may be a processor or a controller, which can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0113] In addition, the device provided in this application embodiment may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a vehicle rearview mirror control method provided in the above embodiment.

[0114] This application also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the vehicle rearview mirror control method provided in the above embodiments.

[0115] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the vehicle rearview mirror control method provided in the above embodiment.

[0116] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0117] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0118] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0119] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A vehicle rearview mirror control method characterized by, The method is applied to a vehicle including a rearview mirror and a camera device, and comprises: acquiring an ambient brightness value of an environment in which a target vehicle is located based on the camera device; judging whether the target vehicle satisfies an opening condition of a glare detection set for the rearview mirror based on the ambient brightness value and an enabling state of the target vehicle; if the target vehicle satisfies the opening condition, determining an exposure control parameter used for brightness processing of the ambient brightness value based on the ambient brightness value and a preset target brightness value; controlling the rearview mirror based on the exposure control parameter.

2. The method of claim 1, wherein, The judging whether the target vehicle satisfies the opening condition of the glare detection set for the rearview mirror based on the ambient brightness value and the enabling state of the target vehicle comprises: judging whether there is a remaining vehicle with high beam turned on behind the target vehicle based on the ambient brightness value; if there is a remaining vehicle with high beam turned on behind the target vehicle, and the enabling state of the target vehicle indicates that the camera device is in a non-fault state, and the enabling state of the target vehicle indicates that the target vehicle has started a dim light driving mode, it is determined that the target vehicle satisfies the opening condition of the glare detection set for the rearview mirror.

3. The method of claim 2, wherein, The judging whether there is a remaining vehicle with high beam turned on behind the target vehicle based on the ambient brightness value comprises: monitoring a target ambient brightness value and a brightness distribution feature behind the target vehicle; if a maximum ambient brightness value in the target ambient brightness value is greater than a first brightness threshold value, and the brightness distribution feature satisfies a light concentration distribution condition, it is determined that there is a remaining vehicle with high beam turned on behind the target vehicle.

4. The method of claim 3, wherein, The brightness distribution feature comprises a light spot area and a halo diffusion degree, and the determining whether there is a remaining vehicle with high beam turned on behind the target vehicle based on the maximum ambient brightness value greater than the first brightness threshold value and the brightness distribution feature satisfying the light concentration distribution condition comprises: acquiring the maximum ambient brightness value in the target ambient brightness value, acquiring a light spot area formed by pixels corresponding to a target ambient brightness value satisfying a second brightness threshold value in the target ambient brightness value, and acquiring a halo diffusion degree of an edge of the light spot area; if the maximum ambient brightness value is greater than the first brightness threshold value, and an area of the light spot area is less than a preset area threshold value, and the halo diffusion degree is less than a preset diffusion degree threshold value, it is determined that there is a remaining vehicle with high beam turned on behind the target vehicle, and the first brightness threshold value is greater than or equal to the second brightness threshold value.

5. The method of claim 2, wherein, The judging whether there is a remaining vehicle with high beam turned on behind the target vehicle based on the ambient brightness value comprises: monitoring a brightness change rate of the target ambient brightness value within a preset time period behind the target vehicle; if the brightness change rate is greater than a preset change rate threshold value, it is determined that there is a remaining vehicle with high beam turned on behind the target vehicle.

6. The method of claim 1, wherein, The exposure control parameter used for the brightness processing of the average brightness value is determined based on the average brightness value and the target brightness value if the target vehicle meets the starting condition. An occlusion state of a lens of the camera device is acquired. A first brightness value is determined as the target brightness value if the occlusion state is an unoccluded state. A second brightness value is determined as the target brightness value if the occlusion state is a partially occluded state, the second brightness value being less than the first brightness value. Output prompt information is provided to prompt a user to adjust the lens of the camera device if the occlusion state is a fully occluded state.

7. The method of claim 1, wherein, The exposure control parameter used for the brightness processing of the average brightness value is determined based on the average brightness value and the target brightness value if the target vehicle meets the starting condition. An average brightness value of the environment is determined based on the average brightness value if the target vehicle meets the starting condition. The exposure control parameter used for the brightness processing of the average brightness value is determined based on the average brightness value and the target brightness value.

8. The method of claim 7, wherein, The exposure control parameter includes an exposure time and a gain value, and the exposure control parameter used for the brightness processing of the average brightness value is determined based on the average brightness value and the target brightness value, including: An brightness difference value between the target brightness value and the average brightness value is acquired. The exposure time and the gain value required for the brightness processing of the camera device are determined based on the brightness difference value.

9. The method of claim 8, wherein, The anti-dazzling control of the rearview mirror based on the exposure control parameter includes: The light transmittance of the rearview mirror is controlled to decrease to a first light transmittance if the exposure time is less than a first time threshold value and the gain value is greater than a first gain threshold value. The light transmittance of the rearview mirror is controlled to decrease to a second light transmittance if the exposure time is greater than a second time threshold value and the gain value is less than a second gain threshold value, the second time threshold value being greater than the first time threshold value, the second gain threshold value being less than the first gain threshold value, and the second light transmittance being less than the first light transmittance. The light transmittance of the rearview mirror is controlled to decrease to a third light transmittance if the exposure time is greater than a third time threshold value and the gain value is greater than a third gain threshold value, the third time threshold value being greater than the second time threshold value, the third gain threshold value being greater than the first gain threshold value, and the third light transmittance being less than the second light transmittance.

10. A vehicle characterized by comprising: The vehicle includes: a memory for storing executable program code; a processor for calling and running the executable program code from the memory, so that the vehicle performs the method as claimed in any one of claims 1 to 9.