Method for controlling a rearview mirror, electronic device and vehicle

By comprehensively judging the brightness of the forward and rear view images and dynamically adjusting the light transmittance and reflection angle of the liquid crystal lens, the problem of low recognition accuracy of strong light from behind the vehicle in the rearview mirror is solved, thus improving the anti-glare performance and driving safety.

CN120716588BActive Publication Date: 2026-07-24GREAT WALL MOTOR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREAT WALL MOTOR CO LTD
Filing Date
2025-07-31
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

In existing technologies, the recognition accuracy of vehicle rearview mirrors in strong light scenes behind the vehicle is not high, which leads to a decrease in the anti-glare performance of the exterior rearview mirrors and affects driving safety.

Method used

By comprehensively judging the target brightness of the front view image and the target brightness of the rear view image, the system identifies strong light sources behind the vehicle and dynamically adjusts the reflective effect of the exterior rearview mirrors based on the light transmittance and reflection angle of the liquid crystal lens, including dynamic balance mode, strong light suppression mode and extreme protection mode, to improve the response accuracy of the anti-glare function.

Benefits of technology

It improves the response accuracy and adjustment efficiency of the anti-glare mode, enhances driving safety and comfort in complex scenarios, and reduces the interference of strong light on the driver's vision.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120716588B_ABST
    Figure CN120716588B_ABST
Patent Text Reader

Abstract

The application provides a rearview mirror control method, an electronic device and a vehicle, and relates to the field of rearview mirror system control.The method comprises the following steps: in response to determining that the target brightness of an acquired front view image is less than a first brightness threshold value and identifying a light spot in an acquired rear view image, determining the brightness of the light spot according to image information of the rear view image, and determining the target brightness of the rear view image based on the brightness of the light spot; in response to determining that the target brightness of the rear view image is greater than a second brightness threshold value, adjusting the reflection effect of an outside rearview mirror according to the target brightness of the rear view image based on the anti-dazzling function of the outside rearview mirror; wherein the first brightness threshold value is less than the second brightness threshold value; the application can reduce the interference of strong light on the driver's line of sight, improve the response accuracy and adjustment efficiency of the anti-dazzling mode, and enhance the safety and comfort of driving in complex scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of rearview mirror system control technology, and in particular to a rearview mirror control method, electronic equipment, and vehicle. Background Technology

[0002] As living standards improve, vehicle safety and comfort are receiving increasing attention. When driving at night, high beams from behind can reflect off the side mirrors, causing glare for the driver, affecting rear visibility, and threatening driving safety. Therefore, some vehicles are equipped with anti-glare side mirrors to reduce the reflection of strong light.

[0003] Currently, vehicles use light sensors on the rearview mirror to detect differences in light levels between the front and rear to identify anti-glare scenarios. However, this method is not very accurate in identifying strong light scenes behind the vehicle, which affects the adjustment accuracy and anti-glare performance of the exterior rearview mirror. Summary of the Invention

[0004] In view of this, the purpose of this application is to propose a rearview mirror control method, electronic device and vehicle to solve the technical problem that the low recognition accuracy of strong light scenes behind the vehicle body affects the deterioration of the anti-glare performance of the exterior rearview mirror.

[0005] For the purposes described above, this application provides a method for controlling a rearview mirror, including:

[0006] In response to determining that the target brightness of the acquired front view image is less than a first brightness threshold, and identifying a light spot in the acquired rear view image, the brightness of the light spot is determined according to the image information of the rear view image, and the target brightness of the rear view image is determined based on the brightness of the light spot. In response to determining that the target brightness of the rearview image is greater than a second brightness threshold, the reflective effect of the exterior rearview mirror is adjusted according to the target brightness of the rearview image based on the anti-glare function of the vehicle's exterior rearview mirror. Wherein, the first brightness threshold is less than the second brightness threshold.

[0007] Furthermore, the exterior rearview mirror includes a liquid crystal lens whose light transmittance can be adjusted by electrical parameters; The anti-glare function based on the vehicle's exterior rearview mirror adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, including: The current anti-glare mode of the exterior rearview mirror is determined based on the target brightness of the rearview image, and the electrical parameters applied to the liquid crystal lens are adjusted based on the current anti-glare mode of the exterior rearview mirror.

[0008] Furthermore, the anti-glare mode includes a dynamic balance mode, a strong light suppression mode, and an extreme protection mode; The step of determining the current anti-glare mode of the exterior rearview mirror based on the target brightness of the rearview image, and adjusting the electrical parameters applied to the liquid crystal lens based on the current anti-glare mode of the exterior rearview mirror, includes: In response to determining that the target brightness of the rearview image is greater than the second brightness threshold and less than or equal to the third brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to dynamic balance mode to apply a first preset voltage to the liquid crystal lens and adjust its light transmittance to the first preset light transmittance. In response to determining that the target brightness of the rearview image is greater than the third brightness threshold and less than or equal to the fourth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to a strong light suppression mode to apply a second preset voltage to the liquid crystal lens and adjust its light transmittance to the second preset light transmittance. In response to determining that the target brightness of the rearview image is greater than the fourth brightness threshold and less than or equal to the fifth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to the extreme protection mode to apply a third preset voltage to the exterior rearview mirror and adjust its light transmittance to the third preset light transmittance. The first preset voltage, the second preset voltage, and the third preset voltage increase sequentially, as do the first preset transmittance, the second preset transmittance, and the third preset transmittance.

[0009] Furthermore, the exterior rearview mirror is also provided with a drive module for adjusting the reflection angle of the liquid crystal lens, and the power output end of the drive module abuts against the backlight side of the liquid crystal lens. The method for controlling the rearview mirror also includes: In response to the target brightness of the rearview image being greater than a fifth brightness threshold, the deflection angle of the exterior rearview mirror is adjusted according to the obtained seat position information within the driving area, so as to reduce the light reflected from the exterior rearview mirror to the driving area by adjusting the deflection angle of the liquid crystal lens.

[0010] Further, determining the target brightness of the rear view image based on the brightness of the light spot includes: In response to the presence of at least two light spots, a weighting coefficient for each light spot is determined based on the brightness of at least each light spot and its corresponding area, and a weighted brightness for each light spot is determined based on the weighting coefficient. The weighted brightness of all light spots is sorted according to the preset noise reduction sorting rules and a monotonic sequence is generated. The median of the monotonic sequence is used as the target brightness of the rear view image. The preset noise reduction sorting rule is to monotonically sort the weighted brightness.

[0011] Furthermore, the anti-glare function based on the vehicle's exterior rearview mirror, which adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, also includes: Adjust the second brightness threshold according to the acquired abnormal weather type; In response to determining that the abnormal weather is precipitation, the first preset adjustment rule is retrieved based on the precipitation information of the area where the vehicle is currently located, and the second brightness threshold is lowered according to the first preset adjustment rule; The first preset adjustment rule is to reduce the second brightness threshold according to a first preset ratio.

[0012] Furthermore, the anti-glare function based on the vehicle's exterior rearview mirror, which adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, also includes: In response to the brightness value of the light spot identified in the acquired side image being greater than or equal to the second brightness threshold, the reflective effect of the exterior rearview mirror corresponding to the side image is adjusted based on the target brightness of the rearview image. In response to the absence of a light spot in the acquired side image, or if the brightness value of the identified light spot is less than the second brightness threshold, the exterior rearview mirror corresponding to the side image is controlled to maintain its current state.

[0013] Furthermore, the methods for controlling the rearview mirror also include: The anti-glare function of the exterior rearview mirror is turned off when the vehicle meets at least one of the following conditions; In response to receiving a forced exit command for the anti-glare function; In response to the vehicle's low beam headlights being off; In response to the vehicle switching to reverse gear; In response to the vehicle losing power.

[0014] Based on the same inventive concept, this disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method described above when executing the computer program.

[0015] Based on the same inventive concept, this disclosure also provides a vehicle including the electronic equipment described above.

[0016] As can be seen from the above, the rearview mirror control method, electronic device, and vehicle provided in this application can comprehensively judge the lighting scene of the vehicle's environment and the interference of strong light behind the vehicle by using the target brightness of the front view image and the target brightness of the rear view image. Among them, the target brightness of the front view image can determine the brightness state of the vehicle's environment, ensuring that the vehicle can activate the rear strong light detection logic in low-light environments, thus improving the rationality of triggering the anti-glare function. By identifying the light spots in the rear view image and the target brightness of the rear view image, and comparing the target brightness of the rear view image based on a second brightness threshold, it is possible to accurately determine whether there is a strong light source behind the vehicle that causes glare. This allows the rearview mirror control unit to dynamically adjust the reflective effect of the exterior rearview mirror according to the actual light source intensity, effectively reducing the interference of strong light on the driver's vision, improving the response accuracy and adjustment efficiency of the anti-glare mode, and enhancing the safety and comfort of driving in complex scenarios. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart of the rearview mirror control method in the embodiments of this application; Figure 2 This is a flowchart of the method for adjusting the anti-glare mode of the exterior rearview mirror in the embodiments of this application; Figure 3 This is a flowchart of a method for determining the target brightness of a rear view image in an embodiment of this application; Figure 4 This is a flowchart illustrating the method for adjusting the second brightness threshold based on abnormal weather type in this application embodiment; Figure 5 This is a flowchart illustrating the method for adjusting the anti-glare mode of the corresponding exterior rearview mirror based on the side image in this application embodiment. Figure 6 This is a structural block diagram of the control device for the rearview mirror in an embodiment of this application; Figure 7 This is a structural block diagram of the electronic device in the embodiments of this application. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0020] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0021] In this article, it is important to understand that any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.

[0022] Vehicles primarily obtain their rearward visibility through exterior rearview mirrors and streaming rearview mirrors. For vehicles driving at night or in tunnels, if a vehicle behind is using high beams, the glare received by that vehicle will be reflected through the exterior rearview mirror into the driver's line of sight, causing glare and interfering with the driver's rearward visibility, increasing driving risk. To reduce the safety hazards caused by glare and improve driving safety, some vehicles are equipped with exterior rearview mirrors with anti-glare functions. Currently, there are many types of anti-glare technologies on the market. Considering factors such as production costs and anti-glare effectiveness, most vehicles modify their exterior and / or interior rearview mirrors, using anti-glare rearview mirrors to reduce interference from glare from behind. Common anti-glare rearview mirrors include polarized rearview mirrors that use polarizing films (or polarizing reflective films), liquid crystal rearview mirrors that use liquid crystal lenses, and deflecting rearview mirrors that can adjust the reflection angle of the mirror. Different rearview mirrors can process strong light from behind based on different working principles, reduce the interference of strong light emitted by vehicles behind on the user's vision, protect the user from glare, and improve the user's driving safety.

[0023] For example, for polarized rearview mirrors, by adding a special polarizing material to the mirror surface, light from specific directions can be filtered out, reducing the glare from the high beams of vehicles behind without affecting the propagation path of other light, so as to maintain good visual clarity of the rearview mirror.

[0024] For example, for a liquid crystal exterior rearview mirror, the light transmittance is adjusted by utilizing the changes in the optical properties of the liquid crystal material under the action of an applied electric field. When the strong light from a vehicle behind shines on the liquid crystal lens of the exterior rearview mirror, the control unit of the rearview mirror can apply a voltage to the liquid crystal layer to change the transparency of the liquid crystal layer, thereby adjusting the reflection intensity of the reflected light by the liquid crystal lens of the exterior rearview mirror, reducing the impact of glare, and ensuring the clarity of the user's rear view.

[0025] For example, a deflecting exterior rearview mirror includes a housing, a reflective surface movably connected to the housing, and a mechanical adjustment structure. The mechanical adjustment structure is located inside the housing and has a power output end that abuts against the backlight side of the reflective surface. The degree of protrusion of the power output end can be adjusted by the mechanical adjustment structure, thereby changing the deflection angle of the reflective surface on the housing. This allows strong light from the rear to be directed in other directions instead of being directly reflected into the user's line of sight, thus solving the glare problem through physical means and improving the user's driving safety.

[0026] In related technologies, most vehicles rely on the light sensor in the rearview mirror to identify the vehicle's current environment and the intensity of high beams from vehicles behind. This involves two opposing light sensors mounted on the rearview mirror inside the driver's seat to detect light from the front and rear, thus determining whether an anti-glare scenario is required. However, because the interior rearview mirror is positioned higher than the exterior mirrors, light from the front or rear is less likely to directly illuminate it, making it difficult for the light sensor to accurately determine glare levels, thus rendering the anti-glare function ineffective. Furthermore, the interior rearview mirror's light sensor is highly dependent on the light transmittance of the rear window. Some vehicles have rear window tints with filtering functions, or some sports cars lack a rear window, which may cause the light sensor to struggle to accurately determine the light intensity of vehicles behind, affecting the system's accuracy in recognizing strong rear light scenes. This, in turn, reduces the adjustment accuracy and anti-glare performance of the exterior rearview mirrors, weakening the protective performance of the anti-glare rearview mirrors.

[0027] This application provides a method for controlling a rearview mirror, wherein the method can be executed by a rearview mirror control unit, which can be a rearview mirror adjustment module or a rearview mirror adjustment computer; for example Figure 1 The control methods for the rearview mirror include S100-S200 as described below.

[0028] S100: In response to determining that the target brightness of the acquired front view image is less than a first brightness threshold, and identifying a light spot in the acquired rear view image, determining the brightness of the light spot based on the image information of the rear view image, and determining the target brightness of the rear view image based on the brightness of the light spot. In this step, the vehicle's forward-view image can be acquired by a first image acquisition unit located at the front of the vehicle body. Specifically, the first image acquisition unit can be a vehicle's forward-view camera, an intelligent driving system auxiliary camera, a dashcam camera, or a front-facing camera of a surround-view system, etc., so that the rearview mirror control unit can determine the target brightness of the forward-view image based on the acquired forward-view image. The target brightness of the forward-view image refers to the brightness value of the external environment reflected by the forward-view image, which is used to determine the brightness state of the area where the vehicle is currently located. The first brightness threshold is a preset brightness reference value, which is used to determine whether the target brightness of the acquired forward-view image reaches the corresponding triggering condition, thereby determining whether the rearview mirror control unit should start the analysis and processing of the rearview image.

[0029] Similarly, the rear view image of the vehicle can be acquired by a second image acquisition unit located at the rear of the vehicle body. Specifically, the second image acquisition unit can be an external camera of the vehicle's interior rearview mirror, a reversing camera, a blind spot monitoring camera, or a rear camera of the surround view system, etc., so that the rearview mirror control unit can determine the presence of light spots and their target brightness based on the rear view image. Preferably, since the height of the external camera of the interior rearview mirror is the same as the height of the exterior rearview mirror, using it as the second image acquisition unit can improve the recognition accuracy of the light source behind the vehicle body.

[0030] A light spot refers to a bright spot or overexposed area formed in the rear view image acquired by the second image acquisition unit due to direct illumination or reflection from a strong light source. The target brightness of the rear view image refers to the brightness value of the target light spot in the image, used to determine whether there is a strong light source such as a high beam in the rear view image. The second brightness threshold is a preset brightness reference value, used to determine whether the target brightness of the acquired rear view image meets the adjustment requirements of the anti-glare function of the exterior rearview mirror.

[0031] In practice, the vehicle's rearview mirror control unit can acquire the vehicle's front view image and its corresponding image information through the first image acquisition unit. After acquiring the front view image, the target brightness of the front view image is determined based on the image information, and the target brightness is compared with a preset first brightness threshold to determine the brightness of the vehicle's current environment. When the target brightness of the front view image is determined to be less than the first brightness threshold, it indicates that the ambient light of the vehicle's environment is relatively dark, such as at night or in a tunnel. In this case, the vehicle is easily affected by strong light from behind, which can cause glare on the exterior rearview mirror.

[0032] It should be noted that, in order to improve the recognition accuracy of the front view image and the accuracy of its target brightness, and to ensure the continuity of brightness acquisition of the front view image in dynamic scenes, the first image acquisition unit can control the acquisition frequency of the front view image at 30-90fps. After acquiring the image information of the front view image, the values ​​of the RGB color space are mapped to the YUV color space through a linear transformation matrix, realizing the conversion from RGB image to YUV color space. Then, the brightness component of the Y channel in the front view image is extracted and analyzed independently to calculate the corresponding brightness value, and the brightness value of the Y channel is used as the target brightness of the front view image, thereby reducing the interference of other chromaticity information and improving the accuracy of judging the brightness of the environment in which the vehicle is located.

[0033] When the target brightness of the acquired front view image is determined to be less than the first brightness threshold, the rear view image information of the vehicle can be acquired through the second image acquisition unit. When the rear view image is acquired, the presence of light spots can be analyzed based on the image information to determine if there is a strong light source behind the vehicle. If a light spot is identified in the rear view image, it indicates the presence of a strong light source such as high beams behind the vehicle, which may cause glare in the exterior rearview mirror. Therefore, the brightness value of the light spot can be determined based on the acquired image information and used as the target brightness of the rear view image to characterize the brightness of the strong light source behind the vehicle. By comparing the data, it can be determined whether the strong light source behind the vehicle is sufficient to cause glare in the exterior rearview mirror. This step helps determine whether glare in the exterior rearview mirror is likely to occur in the current driving scenario and accurately identifies whether there is a strong light source behind the vehicle that causes glare, improving the accuracy and efficiency of the anti-glare function triggering, while also enhancing the accuracy of identifying strong light sources in darker environments.

[0034] It should be noted that, to improve the accuracy of spot recognition in the rear view image, enhance the accuracy of target brightness in the obtained rear view image, and improve the continuity of target brightness acquisition in dynamic scenes, the acquisition frequency of the second image acquisition unit for the rear view image can be controlled within the range of 30-90fps, and not lower than the acquisition frequency of the front view image. Provided that the target brightness of the acquired front view image is less than the first brightness threshold, and a spot is identified in the rear view image, the brightness of the spot can be determined based on the image information of the rear view image, and the target brightness of the rear view image can be further determined based on the brightness of the spot. Specifically, after acquiring the image information of the rear view image, the RGB color space can be mapped to the YUV color space through a linear transformation matrix to achieve the conversion from RGB image to YUV color space; subsequently, the brightness component of the Y channel is extracted and analyzed independently to determine whether a spot exists in the rear view image, reducing interference from other chromaticity information and improving the accuracy of spot recognition. After confirming the presence of light spots in the rear view image, image thresholding and connected component analysis algorithms can be used to extract the area where the light spots are located. The brightness value can be calculated using the grayscale values ​​of all pixels within the light spots, so as to provide a basis for determining the target in the rear view image and accurately assess the intensity of strong light sources behind the vehicle body, thereby improving the response accuracy and efficiency of the anti-glare function.

[0035] S200: In response to determining that the target brightness of the rearview image is greater than a second brightness threshold, based on the anti-glare function of the exterior rearview mirror, the reflective effect of the exterior rearview mirror is adjusted according to the target brightness of the rearview image, wherein the first brightness threshold is less than the second brightness threshold.

[0036] In this step, the second brightness threshold is a pre-set brightness reference value used to determine whether the target brightness of the acquired rearview image meets the conditions for triggering or even adjusting the anti-glare function of the exterior rearview mirror. Since the first brightness threshold is used to determine the brightness level of the vehicle's current environment, while the second brightness threshold is used to identify whether there are strong light sources behind the vehicle that may cause glare, the first brightness threshold must be set to be lower than the second brightness threshold to ensure the rationality of the logical judgment and the accuracy of the function triggering.

[0037] In practice, after the vehicle's rearview mirror control unit acquires the target brightness of the rearview image through the second image acquisition unit, it compares it with a preset second brightness threshold to determine whether a strong light source in the rearview image might cause glare in the exterior rearview mirror. When the target brightness of the rearview image is greater than the second brightness threshold, it indicates that the light spot in the rearview image is a relatively strong light source, meaning there is a bright light source behind the vehicle that could potentially cause glare in the exterior rearview mirror, thus affecting the driver's vision. At this time, the rearview mirror control unit will trigger the anti-glare function of the exterior rearview mirror and dynamically adjust the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image. Therefore, this step can accurately identify whether a strong light source behind the vehicle can cause glare, and if so, reduce the intensity of the strong light reflected to the driver's position, improve driving visibility, and enhance driving safety.

[0038] In summary, the rearview mirror control method provided in this application can comprehensively judge the lighting scene of the vehicle's environment and the interference of strong light from behind the vehicle by using the target brightness of the front view image and the target brightness of the rear view image. Specifically, the target brightness of the front view image can determine the brightness state of the vehicle's environment, ensuring that the rear strong light detection logic is activated in low-light environments, thus improving the rationality of triggering the anti-glare function. By identifying the light spots in the rear view image and the target brightness of the rear view image, and comparing the target brightness of the rear view image based on a second brightness threshold, it can accurately determine whether there is a strong light source behind the vehicle that causes glare. This allows the rearview mirror control unit to dynamically adjust the reflective effect of the exterior rearview mirror according to the actual light source intensity, effectively reducing the interference of strong light on the driver's vision, significantly improving the response accuracy and adjustment efficiency of the anti-glare mode, and enhancing the safety and comfort of driving in complex scenarios.

[0039] In some embodiments, the exterior rearview mirror includes a liquid crystal lens whose light transmittance can be adjusted by electrical parameters; based on the anti-glare function of the exterior rearview mirror, adjusting the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image includes: The current anti-glare mode of the exterior rearview mirror is determined based on the target brightness of the rearview image, and the electrical parameters applied to the liquid crystal lens are adjusted based on the current anti-glare mode of the exterior rearview mirror.

[0040] Specifically, for exterior rearview mirrors using liquid crystal lenses, the reflectivity of the lens can be improved by adjusting the transmittance of the liquid crystal lens. The transmittance of a liquid crystal lens refers to the percentage of light allowed to pass through the lens when it is energized or de-energized. It is typically controlled by electrical parameters. When light shines on the surface of the liquid crystal lens, the higher the transmittance, the less light is reflected, and the more significant the anti-glare effect of the exterior rearview mirror. The electrical parameters used to adjust the transmittance mainly include the voltage or current that drives the liquid crystal molecules to deflect. By adjusting their magnitude, the arrangement of the liquid crystal molecules can be changed, thereby achieving precise control of the transmittance.

[0041] In practice, when the rearview mirror control unit determines that the target brightness of the rearview image is greater than the second preset brightness, it indicates that there is a light spot formed by a strong light source in the rearview image, meaning there is a strong light source behind the vehicle that may cause glare in the exterior rearview mirror. At this time, the rearview mirror control unit will activate the anti-glare function of the exterior rearview mirror and determine the currently activated anti-glare mode based on the target brightness of the rearview image to reduce the impact of the strong light source behind the vehicle on the driver's visibility. During the anti-glare function activation, the rearview mirror control unit applies corresponding driving voltage and other electrical parameters to the liquid crystal lens to change the lens's light transmittance and dynamically adjusts its light transmission effect according to the different light intensities of the strong light source. This flexibly adjusts the anti-glare performance of the strong light source according to the actual situation, alleviating the glare problem caused by strong light. By executing this step, flexible control of the anti-glare performance of the exterior rearview mirror can be achieved, improving driving safety and comfort.

[0042] In some embodiments, the anti-glare mode includes a dynamic balance mode, a strong light suppression mode, and an extreme protection mode. For example, the dynamic balance mode is suitable for scenarios with weak illumination from strong rear light sources. By adjusting the reflectivity of the liquid crystal lens, it reduces glare while maintaining visual clarity, achieving a balance between light and visibility. The strong light suppression mode is used to deal with situations where the intensity of strong rear light sources is high. By quickly reducing the reflectivity of the liquid crystal lens, it promptly avoids glare problems. The extreme protection mode is used in scenarios with extreme strong light or multiple strong light sources superimposed. By reducing the light transmittance of the liquid crystal lens to the lowest threshold, it prioritizes the safety of the driver's vision. In other words, the three anti-glare modes can be flexibly switched according to actual lighting conditions to improve the anti-glare effect and driving safety of the exterior rearview mirror in different environments.

[0043] Based on the content described in S200, such as Figure 2 As shown, the current anti-glare mode of the exterior rearview mirror is determined based on the target brightness of the rearview image, and the electrical parameters applied to the liquid crystal lens are adjusted based on the current anti-glare mode of the exterior rearview mirror, including S2011-S2013 as described below.

[0044] S2011: In response to determining that the target brightness of the rearview image is greater than the second brightness threshold and less than or equal to the third brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to dynamic balance mode to apply a first preset voltage to the liquid crystal lens and adjust its light transmittance to the first preset light transmittance. In this step, the third brightness threshold is a preset brightness reference value, which is used as a critical threshold to determine whether to switch to dynamic balance mode after the anti-glare function of the exterior rearview mirror is enabled; the first preset voltage is a preset reference voltage, which corresponds to a specific transmittance of the liquid crystal lens, namely the first preset transmittance. The first preset voltage is used as a specified voltage threshold to drive the liquid crystal lens to adjust to the first preset transmittance, and is used to control the reflection performance of the lens in the anti-glare process.

[0045] In practice, after acquiring the target brightness of the rearview image, the rearview mirror control unit can determine the anti-glare mode to be switched to for the exterior rearview mirror based on the target brightness. When the rearview mirror control unit determines that the target brightness of the rearview image is greater than a second brightness threshold and less than or equal to a third brightness threshold, it indicates that there is a strong light source behind the vehicle, which may cause a certain degree of glare to the driver through the exterior rearview mirror. At this time, the rearview mirror control unit can switch the anti-glare mode of the exterior rearview mirror to a dynamic balance mode and apply a first preset voltage to the liquid crystal lens to adjust its light transmittance to a first preset light transmittance (for example, the first preset light transmittance is set to a value between 0-50%), thereby effectively reducing the reflectivity of the exterior rearview mirror. By executing this step, the user can maintain good visual clarity while reducing glare, achieving a reasonable balance between light control and visibility.

[0046] S2012: In response to determining that the target brightness of the rearview image is greater than the third brightness threshold and less than or equal to the fourth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to the strong light suppression mode to apply a second preset voltage to the liquid crystal lens and adjust its light transmittance to the second preset light transmittance. In this step, the fourth brightness threshold is a preset brightness reference value, which is used as a critical threshold to determine whether to switch to the strong light suppression mode after the anti-glare function of the exterior rearview mirror is enabled; the second preset voltage is a preset reference voltage, which corresponds to a specific light transmittance of the liquid crystal lens, namely the second preset light transmittance. The second preset voltage is used as a specified voltage threshold to drive the liquid crystal lens to adjust to the second preset light transmittance, and is used to control the reflection performance of the lens in the anti-glare process.

[0047] In practice, after acquiring the target brightness of the rearview image, the rearview mirror control unit determines the anti-glare mode to be switched to for the exterior rearview mirror based on this brightness value. When the rearview mirror control unit determines that the target brightness of the rearview image is greater than the third brightness threshold and less than or equal to the fourth brightness threshold, it indicates that there is a strong light source with high intensity behind the vehicle, which will significantly cause glare to the driver through the exterior rearview mirror. At this time, the rearview mirror control unit can switch the anti-glare mode of the exterior rearview mirror to the strong light suppression mode and apply a second preset voltage to the liquid crystal lens to adjust its light transmittance to a second preset light transmittance (for example, the second preset light transmittance is set to a value between 50% and 70%), thereby enhancing the light transmission performance of the liquid crystal lens and significantly reducing the reflectivity of the exterior rearview mirror. By executing this step, mirror reflection can be quickly and effectively reduced, glare problems can be avoided in time, and driving safety can be improved.

[0048] S2013: In response to determining that the target brightness of the rearview image is greater than the fourth brightness threshold and less than or equal to the fifth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to the extreme protection mode to apply a third preset voltage to the exterior rearview mirror and adjust its light transmittance to the third preset light transmittance. In this step, the fifth brightness threshold is a preset brightness reference value, which is used as a critical threshold to determine whether to switch to the extreme protection mode after the anti-glare function of the exterior rearview mirror is enabled; the third preset voltage is a preset reference voltage, which corresponds to a specific light transmittance of the liquid crystal lens, namely the third preset light transmittance; the second preset voltage is a specified voltage threshold for driving the liquid crystal lens to adjust to the second preset light transmittance, which is used to control the reflection performance of the lens during the anti-glare process.

[0049] In practice, after acquiring the target brightness of the rearview image, the rearview mirror control unit can determine the appropriate anti-glare mode for the exterior rearview mirror based on this brightness value. When the rearview mirror control unit determines that the target brightness of the rearview image is greater than the fourth brightness threshold and less than or equal to the fifth brightness threshold, it indicates that there is extreme or multiple strong light sources behind the vehicle, which can cause significant glare to the driver through the exterior rearview mirror and may seriously interfere with the driver's vision. At this time, the rearview mirror control unit can switch the anti-glare mode of the exterior rearview mirror to the extreme protection mode and apply a third preset voltage to the liquid crystal lens to adjust its light transmittance to the third preset light transmittance (for example, the third preset light transmittance is set to a value between 70% and 90%), thereby fully utilizing the light transmission performance of the liquid crystal lens and minimizing the reflection capability of the exterior rearview mirror. By executing this step, while ensuring visibility, priority is given to ensuring the safety of the driver's vision, effectively dealing with visual interference caused by extreme lighting conditions.

[0050] Furthermore, the first preset voltage, the second preset voltage, and the third preset voltage increase sequentially, and the corresponding first preset transmittance, second preset transmittance, and third preset transmittance also increase sequentially. In other words, the reflectivity of external light in the dynamic balance mode, strong light suppression mode, and extreme protection mode gradually decreases. As the voltage applied to the liquid crystal lens increases, the transmittance of the liquid crystal lens increases, and the reflectivity decreases accordingly, thus enabling it to have an anti-glare effect from weak to strong, meeting the driving needs of different lighting scenarios.

[0051] In some embodiments, the exterior rearview mirror is further provided with a drive module for adjusting the reflection angle of the liquid crystal lens. The power output end of the drive module abuts against the backlight side of the liquid crystal lens. That is, the exterior rearview mirror provided in this application can have a dual adjustment mechanism. It can adjust the light emission effect of the liquid crystal lens by changing its light transmittance, and it can also change the deflection angle of the light reflected by the liquid crystal lens to further suppress the glare problem by reducing the light entering the user's field of vision. The control method of the rearview mirror also includes: In response to the target brightness of the rear view image being greater than the fifth brightness threshold, the deflection angle of the exterior rearview mirror is adjusted based on the obtained seat position information within the driving area, so as to reduce the light reflected from the exterior rearview mirror to the driving area by adjusting the deflection angle of the liquid crystal lens.

[0052] Specifically, after acquiring the target brightness of the rearview image, the rearview mirror control unit can determine the processing strategy for light generated by strong light sources behind the vehicle using the exterior rearview mirror. When the rearview mirror control unit determines that the target brightness of the rearview image is greater than the fifth brightness threshold, it indicates that there is extreme glare or multiple glare superimposed in the current scene. Adjusting the light transmittance of the liquid crystal lens is insufficient to effectively suppress glare, and the extreme protection mode can no longer achieve the ideal anti-glare effect. Therefore, the rearview mirror control unit can further acquire the position information of the driver's seat in the driver's cabin. The seat position information can be used to characterize the driver's specific position. Based on the acquired seat position information, the deflection angle of the exterior rearview mirror can be adjusted to change the propagation direction of light illuminating the reflective side of the liquid crystal lens. This causes the reflected light to deviate from its original trajectory and reduces the intensity of light reflected to the driving area, while ensuring that some reflected light enters the driver's field of vision, providing the user with necessary rear visibility information. By executing this step, even with limited dimming capabilities of the liquid crystal lens, it can effectively cope with extreme glare or multiple glare superimposed in scenarios, improving the anti-glare effect while ensuring the driver's visibility.

[0053] In some embodiments, based on the content described in S100, such as Figure 3 As shown, the target brightness of the rear view image is determined based on the brightness of the light spot, including S110-S120 as described below.

[0054] S110: In response to the presence of at least two light spots, determine the weighting coefficient of the light spot based on the brightness of at least each light spot and its corresponding area, and determine the weighted brightness of each light spot based on the weighting coefficient; In this step, the weighting coefficient of the light spot is inversely proportional to its area. This is used to suppress the interference of large-area low-brightness light spots on the overall target brightness calculation of the rear view image, highlight the contribution of small-area high-brightness light sources in strong light recognition, and improve the recognition effect of strong light sources such as high beams behind the vehicle. The weighted brightness of the light spot is the result of weighting its brightness with its corresponding area. This is used to reduce the impact of large-area low-brightness areas on brightness assessment, enhance the weight of small-area high-brightness light sources in the overall brightness judgment, and thus improve the accuracy of strong light source recognition.

[0055] In practical implementation, when the rearview mirror control unit determines that there are at least two light spots in the rearview image, it can analyze and process these light spots to identify those formed by strong light sources and suppress the interference of large-area, low-brightness light spots (such as puddles on the ground, curtain walls on walls, or glass reflecting light sources) on the overall target brightness calculation process of the rearview image, thereby improving the accuracy of determining the adjustment of the exterior rearview mirror anti-glare mode. For these multiple light spots, the system can determine the brightness and corresponding area of ​​each light spot based on the image information of the rearview image, and calculate the weighting coefficient of each light spot based on the relationship between brightness and area, thus obtaining the weighted brightness corresponding to each light spot. By performing this step, the influence of large-area low-brightness areas on brightness assessment is effectively reduced, the weight of small-area high-brightness light sources in the judgment is enhanced, and the accuracy and reliability of anti-glare control are improved.

[0056] S120: Sort the weighted brightness of all light spots according to the preset noise reduction sorting rules and generate a monotonic sequence. Use the median of the monotonic sequence as the target brightness of the rear view image. The preset noise reduction sorting rules are to sort the weighted brightness monotonically. For example, the monotonic sequence can be incremented or decremented sequentially.

[0057] In this step, after obtaining the weighted brightness of each light spot, a representative weighted brightness can be selected from at least two light spots as the target brightness of the rear view image, so that the brightness of the rear view image is closer to the true brightness of the light source behind the vehicle body, thereby effectively suppressing the interference of large-area low-brightness areas on the overall brightness assessment and enhancing the weight of small-area high-brightness light sources in the judgment.

[0058] In practice, the weighted brightness of all light spots can be sorted according to a preset noise reduction sorting rule to generate a monotonically increasing or decreasing sequence. Since the weighted brightness of the light spot, which serves as the median in this monotonically increasing sequence, is insensitive to outliers (such as extremely high or low brightness), it can accurately reflect the actual brightness level of typical strong light sources in the rear view image. Therefore, the weighted brightness corresponding to this median can be used as the target brightness of the rear view image. Thus, by performing this step, not only is the accuracy and stability of the target brightness calculation of the rear view image improved, but the inverse relationship between the weighting coefficient and the light spot area is also optimized and mitigated, reducing the sensitivity of the target brightness of the rear view image to noise and maintaining effective suppression of large-area low-brightness regions.

[0059] In some embodiments, based on the content described in S200, such as Figure 4 As shown, based on the anti-glare function of the exterior rearview mirror, the reflective effect of the exterior rearview mirror is adjusted according to the target brightness of the rearview image, and previously included S110-S130 as described below: S201: Adjust the second brightness threshold according to the acquired abnormal weather type; In this step, the type of abnormal weather can be obtained through the vehicle's navigation system and vehicle-to-everything (V2X) system, or it can be detected by the vehicle's own sensors, such as rain sensors or optical sensors, thereby achieving accurate identification of the current environmental weather conditions.

[0060] In practice, after the rearview mirror control unit determines that the target brightness of the rearview image is greater than the second brightness threshold, it can further acquire vehicle information and determine whether there is abnormal weather information. When the vehicle information includes abnormal weather information, the rearview mirror control unit can identify the specific type of abnormal weather and adjust the second brightness threshold accordingly based on the type of weather, thereby adjusting the trigger sensitivity of the exterior rearview mirror anti-glare function. By executing this step, the applicable scenarios of the exterior rearview mirror anti-glare function can be expanded, improving the vehicle's anti-glare performance and overall safety under complex weather conditions.

[0061] S202: In response to determining that the abnormal weather is precipitation, the second preset adjustment rule is retrieved based on the precipitation information of the area where the vehicle is currently located, and the second brightness threshold is lowered according to the second preset adjustment rule; In this step, precipitation weather includes rain, snow, and other weather conditions that can create large areas of low-brightness reflection on the ground. Accumulated water or snow caused by precipitation can cause reflections, blurring, or light spot diffusion in the rear view image, increasing interference and affecting the accurate identification of real strong light sources. Therefore, the second brightness threshold needs to be adjusted accordingly to improve recognition sensitivity, prevent the anti-glare function from being missed due to light interference, and ensure effective response to actual strong light conditions even under complex weather conditions.

[0062] In practice, when the rearview mirror control unit confirms that the detected abnormal weather is precipitation, it can combine the vehicle's navigation and driving information to determine the vehicle's current location and corresponding precipitation information. At this point, the rearview mirror control unit can retrieve a first preset adjustment rule for lowering the second brightness threshold in precipitation weather, and adjust the second brightness threshold accordingly, thereby improving the system's sensitivity to persistent and substantial light sources in the rearview image. By executing this step, the response delay or missed triggering of the anti-glare function is avoided, ensuring that the anti-glare function can be activated in a timely manner, thus improving driving safety.

[0063] S203: In response to determining that the abnormal weather is low visibility weather, the second preset adjustment rule is retrieved based on the visibility information of the area where the vehicle is currently located, and the second brightness threshold is increased according to the second preset adjustment rule; In this step, low-visibility weather includes foggy, hazy, and dusty weather. In low-visibility weather, suspended particles in the air increase light scattering, easily creating false high-brightness areas in the rear view image, which are misjudged as strong light sources, thus reducing the trigger accuracy of the anti-glare mode. Therefore, the second brightness threshold needs to be adjusted accordingly to improve the accuracy and control stability of the anti-glare function in low-visibility weather scenarios.

[0064] In practice, when the rearview mirror control unit confirms that the detected abnormal weather is low visibility, it can combine the vehicle's navigation information and driving information to determine the vehicle's current location and the corresponding regional visibility information. At this time, the rearview mirror control unit can retrieve a second preset adjustment rule for increasing the second brightness threshold in low visibility weather, and adjust the second brightness threshold accordingly, thereby reducing the sensitivity to non-continuous, non-substantial light sources appearing in the rearview image. By executing this step, false triggering of the anti-glare function is avoided, making the light judgment closer to the actual lighting conditions, and improving the stability and applicability of the control logic.

[0065] Furthermore, the first preset adjustment rule is to reduce the second brightness threshold according to the first preset ratio, and the second preset adjustment rule is to increase the second brightness threshold according to the second preset ratio.

[0066] In some embodiments, based on the content described in S200, such as Figure 5 As shown, based on the anti-glare function of the exterior rearview mirror, the reflective effect of the exterior rearview mirror is adjusted according to the target brightness of the rearview image. Previously, it also included: S204: In response to the fact that the brightness value of the light spot identified in the acquired side image is greater than or equal to a second brightness threshold, adjust the reflective effect of the exterior rearview mirror corresponding to the side image based on the target brightness of the rearview image. In this step, the rearview mirror control unit can determine the presence of a strong light source behind the vehicle using the rear view image, but it cannot accurately identify the specific location of the strong light source. For example, the strong light source could be located directly behind, to the side, or diagonally behind the vehicle. Since the glare effect produced by strong light sources at different locations on the side mirrors varies, the degree of interference with the driver's vision also differs. To improve the accuracy and adaptability of the control, the presence of light spots and their corresponding brightness values ​​can be identified separately using the side images of both sides of the vehicle. This allows for independent adjustment of the side mirrors, improving the flexibility and targeting of the anti-glare control and further enhancing driving safety.

[0067] Furthermore, the vehicle's side view image can be acquired through a third image acquisition unit located at the front of the vehicle. Specifically, this third image acquisition unit can be a blind spot monitoring camera, a side camera of the surround view system, a lane change assist camera, or a door opening warning camera, used to capture image information from the side of the vehicle. When the rearview mirror control unit acquires the side view image, it can map the RGB color space to the YUV color space using a linear transformation matrix, achieving the conversion from RGB image to YUV color space. Then, it extracts the luminance component of the Y channel for independent analysis to determine whether there are light spots in the side view image and their brightness, reducing interference from other chromaticity information and improving the accuracy of light spot recognition. Based on the presence and brightness of the light spots in the side view image, the system can adaptively adjust the exterior rearview mirrors to optimize the anti-glare effect.

[0068] In practice, a third image acquisition unit acquires side image information of the vehicle's side. When the rearview mirror control unit identifies a light spot in the side image, it determines the brightness of the corresponding light spot and compares it with a second brightness threshold to determine the specific location of the light spot's influence. If the brightness of the light spot in the side image is greater than or equal to the second brightness threshold, it can be confirmed that the light spot represents an effective strong light source located behind the vehicle. At this time, the rearview mirror control unit can adjust the reflective effect of the corresponding side rearview mirror according to the target brightness in the side image, ensuring that the side rearview mirror has better anti-glare performance, thereby effectively reducing visual interference for the driver. By executing this step, the two side rearview mirrors can be flexibly adjusted according to the actual lighting conditions, improving driving safety.

[0069] S205: In response to the fact that no light spot is identified in the acquired side image, or the brightness value of the identified light spot is less than the second brightness threshold, the exterior rearview mirror corresponding to the side image is controlled to maintain the current state.

[0070] In this step, the third image acquisition unit acquires side image information of one side of the vehicle body. If no light spot is identified in the acquired side image, it indicates that the vehicle body on that side is not affected by a strong light source behind the vehicle. Therefore, there is no need to specifically adjust the anti-glare mode of the corresponding exterior rearview mirror on that side; the current state can be maintained. This not only helps reduce energy consumption but also meets the user's current actual needs, ensuring the efficient operation and practicality of the system.

[0071] Similarly, if a light spot is identified in the acquired side image, its brightness value can be compared with a second brightness threshold to determine if it can cause glare. If the brightness of the light spot in the side image is less than the second brightness threshold, it can be confirmed that the light spot is not an effective strong light source from behind the vehicle and has little impact on the field of vision of the corresponding side mirror. Therefore, there is no need to specifically adjust the anti-glare mode of the corresponding side mirror; the current state can be maintained. This not only helps reduce energy consumption but also better meets the user's current actual needs.

[0072] For example, if a light spot is present in the side view image on the left side of the vehicle, and the brightness of the light spot is greater than or equal to a second brightness threshold, while no light spot is detected in the side view image on the right side (or the brightness of the light spot is lower than the second brightness threshold), it can be determined that the strong light source behind the vehicle is located on the left side of the vehicle. At this time, the anti-glare mode can be activated for the left-side rearview mirror to effectively suppress strong light interference and improve the driver's visibility and driving safety on that side.

[0073] In some embodiments, the rearview mirror control method further includes: controlling the anti-glare function of the exterior rearview mirror to turn off in response to the vehicle meeting at least one of the following conditions, so as to turn off the anti-glare function of the exterior rearview mirror in a timely manner, reduce energy consumption to the vehicle, and enable the vehicle to meet the scenario in a timely manner.

[0074] In response to receiving a forced exit command for the anti-glare function; specifically, when the rearview mirror control unit receives a forced exit command actively sent by the user, it indicates that the user no longer needs the anti-glare function of the exterior rearview mirror; at this time, the rearview mirror control unit can control the anti-glare function to be forcibly turned off, so that the exterior rearview mirror returns to its normal working state.

[0075] In response to the vehicle's low beam headlights being off; specifically, when the rearview mirror control unit determines that the vehicle's low beam headlights are off, it indicates that the current application scenario of the vehicle does not meet the conditions for the anti-glare phenomenon to occur (such as driving during the day). At this time, the anti-glare function can be turned off by the rearview mirror control unit to avoid unnecessary operation of the function and improve the system's operating efficiency.

[0076] In response to the vehicle shifting into reverse gear; specifically, when the rearview mirror control unit detects that the vehicle has shifted into reverse gear, it indicates that the driver is reversing. At this time, the required field of vision is the surrounding environment of the vehicle, rather than a distant view behind the vehicle. Therefore, the anti-glare function can be turned off via the rearview mirror control unit to provide a more comprehensive surrounding view and meet the actual needs in reversing scenarios.

[0077] In response to vehicle power failure; specifically, when the rearview mirror control unit detects that the vehicle is in a power-off state, it indicates that the current vehicle application scenario does not meet the conditions for the anti-glare phenomenon to occur (e.g., the vehicle has been parked and the power is turned off). At this time, the anti-glare function can be turned off by the rearview mirror control unit to save system resources and adapt to actual usage needs.

[0078] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.

[0079] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0080] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a rearview mirror control device.

[0081] refer to Figure 6 The control device for the rearview mirror includes: The first response module 10 is used to respond to determining that the target brightness of the acquired front view image is less than a first brightness threshold, and to identify a light spot in the acquired rear view image, determine the brightness of the light spot based on the image information of the rear view image, and determine the target brightness of the rear view image based on the brightness of the light spot. The second response module 10 is used to adjust the reflective effect of the exterior rearview mirror based on the target brightness of the rearview image in response to determining that the target brightness of the rearview image is greater than a second brightness threshold, based on the anti-glare function of the exterior rearview mirror, wherein the first brightness threshold is less than the second brightness threshold.

[0082] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.

[0083] The apparatus of the above embodiments is used to implement the control method of the corresponding rearview mirror in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0084] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the rearview mirror control method described in any of the above embodiments.

[0085] Figure 7 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.

[0086] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0087] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.

[0088] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.

[0089] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0090] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.

[0091] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.

[0092] The electronic devices described above are used to implement the corresponding rearview mirror control methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0093] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the rearview mirror control method as described in any of the above embodiments.

[0094] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0095] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the rearview mirror control method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0096] Based on the same concept, corresponding to any of the above embodiments, this application also provides a computer program product, including computer program instructions, which, when run on a computer, cause the computer to perform the method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0097] Based on the same inventive concept, corresponding to any of the above embodiments, this application also provides a vehicle, including the electronic device or rearview mirror control device of the above embodiments, and executes the rearview mirror control method as described in any of the above embodiments through the electronic device or rearview mirror control device of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0098] It is understood that before using the technical solutions of the various embodiments in this disclosure, users will be informed of the type, scope of use, and usage scenarios of the personal information involved in an appropriate manner, and user authorization will be obtained.

[0099] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose, based on the prompt message, whether to provide personal information to the software or hardware such as electronic devices, applications, servers, or storage media performing the operations of this disclosed technical solution.

[0100] As an optional but not limited implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0101] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0102] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application is limited to these examples; under the concept of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in detail for the sake of brevity.

[0103] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.

[0104] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.

[0105] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the claims of this application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.

Claims

1. A method for controlling a rearview mirror, characterized in that, include: In response to determining that the target brightness of the acquired front view image is less than a first brightness threshold, and identifying a light spot in the acquired rear view image, the brightness of the light spot is determined according to the image information of the rear view image, and the target brightness of the rear view image is determined based on the brightness of the light spot. Determining the target brightness of the rear view image based on the brightness of the light spots includes: in response to the presence of at least two light spots, determining a weighting coefficient for each light spot based on its brightness and corresponding area, and determining a weighted brightness for each light spot based on the weighting coefficient; sorting the weighted brightness of all light spots according to a preset noise reduction sorting rule and generating a monotonic sequence, and using the median of the monotonic sequence as the target brightness of the rear view image; In response to determining that the target brightness of the rearview image is greater than a second brightness threshold, the reflective effect of the exterior rearview mirror is adjusted according to the target brightness of the rearview image based on the anti-glare function of the vehicle's exterior rearview mirror. Wherein, the first brightness threshold is less than the second brightness threshold.

2. The rearview mirror control method according to claim 1, characterized in that, The exterior rearview mirror includes a liquid crystal lens whose light transmittance can be adjusted by electrical parameters; The anti-glare function based on the vehicle's exterior rearview mirror adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, including: The current anti-glare mode of the exterior rearview mirror is determined based on the target brightness of the rearview image, and the electrical parameters applied to the liquid crystal lens are adjusted based on the current anti-glare mode of the exterior rearview mirror.

3. The rearview mirror control method according to claim 2, characterized in that, The anti-glare modes include dynamic balance mode, strong light suppression mode, and extreme protection mode; The step of determining the current anti-glare mode of the exterior rearview mirror based on the target brightness of the rearview image, and adjusting the electrical parameters applied to the liquid crystal lens based on the current anti-glare mode of the exterior rearview mirror, includes: In response to determining that the target brightness of the rearview image is greater than the second brightness threshold and less than or equal to the third brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to dynamic balance mode to apply a first preset voltage to the liquid crystal lens and adjust its light transmittance to the first preset light transmittance. In response to determining that the target brightness of the rearview image is greater than the third brightness threshold and less than or equal to the fourth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to a strong light suppression mode to apply a second preset voltage to the liquid crystal lens and adjust its light transmittance to the second preset light transmittance. In response to determining that the target brightness of the rearview image is greater than the fourth brightness threshold and less than or equal to the fifth brightness threshold, the current anti-glare mode of the exterior rearview mirror is switched to the extreme protection mode to apply a third preset voltage to the exterior rearview mirror and adjust its light transmittance to the third preset light transmittance. The first preset voltage, the second preset voltage, and the third preset voltage increase sequentially, as do the first preset transmittance, the second preset transmittance, and the third preset transmittance.

4. The rearview mirror control method according to claim 3, characterized in that, The exterior rearview mirror is also equipped with a drive module for adjusting the reflection angle of the liquid crystal lens, and the power output end of the drive module abuts against the backlight side of the liquid crystal lens. The method for controlling the rearview mirror also includes: In response to the target brightness of the rearview image being greater than a fifth brightness threshold, the deflection angle of the exterior rearview mirror is adjusted according to the obtained seat position information within the driving area, so as to reduce the light reflected from the exterior rearview mirror to the driving area by adjusting the deflection angle of the liquid crystal lens.

5. The rearview mirror control method according to claim 1, characterized in that, The anti-glare function based on the vehicle's exterior rearview mirror adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, and previously included: Adjust the second brightness threshold according to the acquired abnormal weather type; In response to determining that the abnormal weather is precipitation, the first preset adjustment rule is retrieved based on the precipitation information of the area where the vehicle is currently located, and the second brightness threshold is lowered according to the first preset adjustment rule; The first preset adjustment rule is to reduce the second brightness threshold according to a first preset ratio.

6. The rearview mirror control method according to claim 1, characterized in that, The anti-glare function based on the vehicle's exterior rearview mirror adjusts the reflective effect of the exterior rearview mirror according to the target brightness of the rearview image, and previously included: In response to the brightness value of the light spot identified in the acquired side image being greater than or equal to the second brightness threshold, the reflective effect of the exterior rearview mirror corresponding to the side image is adjusted based on the target brightness of the rearview image. In response to the absence of a light spot in the acquired side image, or if the brightness value of the identified light spot is less than the second brightness threshold, the exterior rearview mirror corresponding to the side image is controlled to maintain its current state.

7. The rearview mirror control method according to claim 1, characterized in that, Also includes: The anti-glare function of the exterior rearview mirror is turned off when the vehicle meets at least one of the following conditions; In response to receiving a forced exit command for the anti-glare function; In response to the vehicle's low beam headlights being off; In response to the vehicle switching to reverse gear; In response to the vehicle losing power.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1 to 7.

9. A vehicle, characterized in that, Including the electronic device as described in claim 8.