Anti-dazzle function starting method, device, equipment, storage medium and vehicle

By determining the local maximum brightness and overall ambient brightness of the area observable by the interior rearview mirror, and combining this with the overall brightness collected by existing light sensors, the anti-glare function of the exterior rearview mirror can be precisely and automatically activated. This solves the problems of manual activation or single-sensor perception in existing technologies, and improves driving safety.

CN119858501BActive Publication Date: 2026-01-13BEIJING CO WHEELS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311368882.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2026-01-13
Estimated Expiration
2043-10-20

AI Technical Summary

Technical Problem

In existing technologies, vehicle anti-glare functions require the driver to manually activate them or require the installation of a light sensor on the rearview mirror, which can lead to driver distraction or the light sensor having a single perception threshold, making it impossible to make accurate judgments based on ambient light intensity.

Method used

By determining the local maximum brightness and overall ambient brightness of the area observable by the rearview mirror inside the target vehicle, and using the overall brightness collected by existing light sensors, it is determined whether to activate the anti-glare function of the exterior rearview mirror, thus achieving precise and automated activation.

Benefits of technology

By enabling precise and automated activation of the anti-glare function of the exterior rearview mirrors based on the actual environment and existing vehicle equipment, driving safety is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119858501B_ABST
    Figure CN119858501B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for starting anti-dazzling function, equipment, storage medium and vehicle. The method comprises: determining a first target ambient brightness of a first ambient area of a target vehicle; the first ambient area is an ambient area observed through an inside rearview mirror of the target vehicle, and the first target ambient brightness is a maximum value of a first local ambient brightness of the first ambient area; if the first target ambient brightness and an overall ambient brightness satisfy a preset brightness condition, determining a second target ambient brightness of a second ambient area of the target vehicle; the second ambient area is an ambient area observed through an outside rearview mirror of the target vehicle; and determining whether to start the anti-dazzling function of the outside rearview mirror according to the first target ambient brightness and the second target ambient brightness. According to the present disclosure, the anti-dazzling function of the outside rearview mirror is accurately and automatically started based on the actual environment of the vehicle under the existing equipment of the vehicle, and the driving safety of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of vehicle technology, and in particular to a method, device, equipment, storage medium, and vehicle for activating an anti-glare function. Background Technology

[0002] Currently, with the development of vehicle technology, more and more vehicles are equipped with anti-glare rearview mirrors. These anti-glare rearview mirrors can activate their anti-glare function when encountering strong light or when other vehicles turn on their high beams, thereby reducing the intensity of light reflected from the rearview mirror to the driver's eyes, preventing the rearview mirror from reflecting strong light and causing glare to the driver, thus improving driving safety.

[0003] One approach in related technologies requires the driver to manually activate the anti-glare function of the rearview mirror after experiencing strong sunlight. However, this can distract the driver and is time-consuming. Another approach involves installing additional light sensors on the rearview mirrors and using the electrical signals generated by these sensors to automatically control the anti-glare function. However, this method requires installing a separate light sensor for each rearview mirror (e.g., the two exterior mirrors and the central interior mirror), and the light sensors have a limited sensitivity to light intensity, making it difficult to combine ambient light levels for precise judgment. Therefore, finding a way to more accurately activate the anti-glare function based on actual environmental conditions while utilizing existing vehicle equipment has become a pressing issue. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides a method, apparatus, device, storage medium, and vehicle for activating an anti-glare function.

[0005] In a first aspect, this disclosure provides a method for activating an anti-glare function, the method comprising:

[0006] Determine a first target ambient brightness for a first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of a first local ambient brightness of the first environmental area;

[0007] If the first target ambient brightness and the overall ambient brightness meet the preset brightness conditions, then the second target ambient brightness of the second environmental area of ​​the target vehicle is determined; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area;

[0008] Based on the first target ambient brightness and the second target ambient brightness, determine whether to activate the anti-glare function of the exterior rearview mirror.

[0009] Secondly, this disclosure provides an anti-glare function activation device, the device comprising:

[0010] The first determining module is used to determine the first target ambient brightness of the first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of the first local ambient brightness of the first environmental area.

[0011] The second determining module is used to determine the second target ambient brightness of the second environmental area of ​​the target vehicle if the first target ambient brightness and the overall ambient brightness meet a preset brightness condition; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area.

[0012] The judgment module is used to determine whether to activate the anti-glare function of the exterior rearview mirror based on the brightness of the first target environment and the brightness of the second target environment.

[0013] Thirdly, embodiments of this disclosure also provide an electronic device, including:

[0014] processor;

[0015] Memory, used to store executable instructions;

[0016] The processor is used to read executable instructions from memory and execute the executable instructions to implement the method for enabling the anti-glare function in the first aspect mentioned above.

[0017] Fourthly, this disclosure also provides a computer-readable storage medium storing a computer program that, when executed by a processor, enables the processor to implement the method for activating the anti-glare function described in the first aspect.

[0018] Fifthly, embodiments of this disclosure also provide a vehicle, including at least one of the following: the aforementioned anti-glare function activation device; the aforementioned electronic device; and the aforementioned computer-readable storage medium.

[0019] The technical solution provided in this disclosure has the following advantages compared with the prior art: An embodiment of this disclosure provides a method, apparatus, device, and storage medium for activating an anti-glare function, which determines a first target ambient brightness in a first environmental area of ​​a target vehicle; wherein the first environmental area is an environmental area observable through the interior rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of a first local ambient brightness in the first environmental area; if the first target ambient brightness and the overall ambient brightness meet a preset brightness condition, then a second target ambient brightness in a second environmental area of ​​the target vehicle is determined; wherein the overall ambient brightness is the ambient brightness collected by a preset light sensor of the target vehicle, the second environmental area is an environmental area observable through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of a second local ambient brightness in the second environmental area; based on the first target ambient brightness and the second target ambient brightness, it is determined whether to activate the anti-glare function of the exterior rearview mirror. By employing the above technical solution, the maximum local ambient brightness of the area observable by the interior rearview mirror is determined, and the overall ambient brightness collected by the target vehicle's preset light sensor is also determined. The overall ambient brightness and the maximum local ambient brightness corresponding to the interior rearview mirror can then be used to characterize whether an excessively bright light source is observed in the interior rearview mirror relative to the overall actual environment. If an excessively bright light source is observed in the interior rearview mirror, the maximum local ambient brightness of the area observable by the exterior rearview mirror is determined. Based on these two maximum local ambient brightness values, it is determined whether an excessively bright light source is observed in the exterior rearview mirror, and thus whether the anti-glare function of the exterior rearview mirror should be activated. With existing vehicle equipment, the anti-glare function of the exterior rearview mirror is precisely and automatically activated based on the actual environment in which the vehicle is located, improving the user's driving safety. Attached Figure Description

[0020] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0021] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart illustrating a method for activating an anti-glare function according to an embodiment of this disclosure;

[0023] Figure 2 A flowchart illustrating a method for determining the brightness of a first target environment provided in an embodiment of this disclosure;

[0024] Figure 3 This is a schematic diagram of a camera viewfinder area provided in an embodiment of the present disclosure;

[0025] Figure 4 This is a schematic flowchart of a process for performing brightness processing on a rear image, provided by an embodiment of the present disclosure.

[0026] Figure 5 A schematic diagram of a preset interior rearview mirror area corresponding to a rearview camera provided in an embodiment of this disclosure;

[0027] Figure 6 This is a schematic flowchart of a brightness processing procedure for a rear image provided in an embodiment of the present disclosure;

[0028] Figure 7 This is a schematic diagram of a preset exterior rearview mirror area corresponding to a left rear-view camera provided in an embodiment of the present disclosure;

[0029] Figure 8 This disclosure provides a schematic diagram of a preset image area corresponding to a right rear-view camera;

[0030] Figure 9 A schematic diagram of the structure of an anti-glare function activation device provided in an embodiment of this disclosure;

[0031] Figure 10 This is a schematic diagram of the hardware circuit structure of an anti-glare function activation device provided in an embodiment of this disclosure. Detailed Implementation

[0032] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0033] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0034] Currently, with the development of vehicle technology, more and more vehicles are equipped with anti-glare rearview mirrors. These anti-glare rearview mirrors can activate their anti-glare function when encountering strong light or when other vehicles turn on their high beams, thereby reducing the intensity of light reflected from the rearview mirror to the driver's eyes, preventing the rearview mirror from reflecting strong light and causing glare to the driver, thus improving driving safety.

[0035] In related technologies, the driver needs to manually activate the anti-glare function of the rearview mirror after experiencing strong light, but this can distract the driver and take a long time to manually activate the anti-glare function.

[0036] Alternatively, additional light sensors could be installed on the rearview mirrors, using the electrical signals generated when these sensors receive light to automatically control the anti-glare function. However, this method requires installing a separate light sensor for each rearview mirror (e.g., the two exterior rearview mirrors and the centrally located interior rearview mirror). Furthermore, the light sensors have a relatively simple threshold for sensing light intensity and cannot make a specific judgment based on ambient light intensity.

[0037] Therefore, how to more accurately activate the anti-glare function while utilizing the vehicle's existing equipment and considering the actual environmental conditions, and how to avoid limiting the layout and design of the vehicle's components, has become an urgent problem to be solved.

[0038] To address the aforementioned issues, this disclosure provides a method, apparatus, device, storage medium, and vehicle for activating an anti-glare function.

[0039] Figure 1 This is a flowchart illustrating a method for activating an anti-glare function according to an embodiment of the present disclosure. The activation can be performed by an anti-glare function activation device, which can be implemented using software and / or hardware, and is generally integrated into an electronic device. This anti-glare function activation device and / or electronic device can be configured in a first vehicle. Figure 1 As shown, the method includes:

[0040] Step 101: Determine the first target ambient brightness of the first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of the first local ambient brightness of the first environmental area.

[0041] The target vehicle can be a moving vehicle, and optionally, it can be a vehicle in drive gear. This embodiment does not limit the energy type of the target vehicle; for example, it can be pure electric or hybrid. This embodiment also does not limit the type of the target vehicle; for example, it can be a sport utility vehicle (SUV) or a sedan. The interior rearview mirror is a rearview mirror located inside the driver's compartment of the target vehicle, allowing observation of the environment behind the vehicle.

[0042] The environmental area can be a portion of the overall environment in which the target vehicle is located. The first environmental area can be the area of ​​the environment that the user can observe from the driver's seat through the rearview mirror. Ambient brightness can be the brightness of the environment, which can be brightness calculated based on image brightness. This ambient brightness can be illuminance; in this embodiment, the unit of ambient brightness is not limited, for example, the unit can be lux. The first local ambient brightness can be the ambient brightness of a local area within the first environmental area, and the first target ambient brightness can characterize the maximum ambient brightness of a local area within the first environmental area.

[0043] In this embodiment of the disclosure, the device for activating the anti-glare function can acquire the first target ambient brightness, which is the largest local ambient brightness within the first environmental area, via a light sensor. Alternatively, the device for activating the anti-glare function can acquire the rear image corresponding to the rearview mirror and determine the first target ambient brightness of the first environmental area based on the rear image.

[0044] Step 102: If the first target ambient brightness and the overall ambient brightness meet the preset brightness conditions, then determine the second target ambient brightness of the second environmental area of ​​the target vehicle; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the external rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area.

[0045] The preset light sensor can be a sensor that measures the intensity of light in front of the vehicle. This preset light sensor can be a sensor that is not specifically used to determine whether the anti-glare function is activated; that is, the preset light sensor can be a light sensor from a system other than the rearview mirror system in the target vehicle. For example, the preset light sensor can be a rain sensor (also known as an optical rain sensor) in the windshield wiper system. The overall ambient brightness can be the ambient brightness that characterizes the overall environment in which the target vehicle is located.

[0046] The preset brightness condition can be a pre-set condition for determining whether to activate the anti-glare function of the exterior rearview mirror. This preset brightness condition can be understood as a prerequisite for determining whether to activate the anti-glare function of the exterior rearview mirror. This preset brightness condition can be set according to user needs, application scenarios, etc., and this embodiment does not impose any limitations. The exterior rearview mirror can be a rearview mirror located outside the driver's side of the vehicle, through which the environment to the side and rear of the vehicle can be observed. The exterior rearview mirror can include a left exterior rearview mirror located on the left side of the vehicle, and / or a right exterior rearview mirror located on the right side of the vehicle. The second environmental area can be the environmental area that the user can observe through the exterior rearview mirror from the driver's position. The second local environmental brightness can be the environmental brightness of a local area within the second environmental area, and the second target environmental brightness can represent the maximum value of the local environmental brightness within the second environmental area.

[0047] In this embodiment, a preset light sensor configured on the target vehicle collects the overall ambient brightness and sends the overall ambient brightness to the anti-glare function activation device. The anti-glare function activation device can receive the overall ambient brightness. It should be noted that the time of collecting the overall ambient brightness and the time of capturing the target image can be the same or the time difference can be less than a time difference threshold.

[0048] The overall ambient brightness characterizes the overall ambient brightness of the environment in which the vehicle is located, while the first target ambient brightness characterizes the maximum local ambient brightness of the first environmental area that can be observed by the target rearview mirror. It is determined whether the first target ambient brightness and the overall ambient brightness meet a preset brightness condition. If so, it indicates that a local light source with a brightness exceeding that of the overall environment can be seen through the interior rearview mirror. Furthermore, the anti-glare function activation device can acquire the second target ambient brightness with the maximum local ambient brightness in the second environmental area through a light sensor, or the anti-glare function activation device can acquire the rear image corresponding to the exterior rearview mirror and determine the second target ambient brightness of the second environmental area based on the rear image.

[0049] If the target ambient brightness does not meet the preset brightness conditions, it means that no local light source with ambient brightness exceeding the overall environment can be seen through the interior rearview mirror, and the subsequent determination of whether to activate the anti-glare function of the exterior rearview mirror will not be made.

[0050] In some embodiments of this disclosure, the first target ambient brightness and the overall ambient brightness satisfy a preset brightness condition, including: determining the ambient brightness difference between the first target ambient brightness and the overall ambient brightness; if the ambient brightness difference is within a first preset difference range, then the preset brightness condition is satisfied.

[0051] The ambient brightness difference can be the numerical difference between the first target ambient brightness and the overall ambient brightness. The first preset difference range can be a pre-set range of ambient brightness differences used to determine whether the anti-glare function of the exterior rearview mirror is activated. The first preset difference range can be set according to user needs, application scenarios, etc., and this embodiment does not impose any restrictions. Understandably, if the ambient brightness difference is within the first preset difference range, then a subsequent determination is made regarding whether to activate the anti-glare function of the exterior rearview mirror; if the ambient brightness difference is not within the first preset difference range, then it is determined that the anti-glare function of the exterior rearview mirror is not activated, and no further determination is made regarding whether to activate the anti-glare function of the exterior rearview mirror.

[0052] In this embodiment, the difference between the first target ambient brightness and the overall ambient brightness is calculated to obtain the ambient brightness difference. It is then determined whether this ambient brightness difference is within a preset difference range. If it is, the first target ambient brightness and the overall ambient brightness are determined to meet the preset brightness condition. Otherwise, the first target ambient brightness and the overall ambient brightness are determined not to meet the preset brightness condition.

[0053] In the above scheme, based on the ambient brightness difference within the first preset difference range, it is determined that there is a relatively bright light source in the environmental area observed through the interior rearview mirror. Therefore, it is necessary to further determine whether the bright light source can be seen through the exterior rearview mirror. This sets a reasonable judgment condition for the activation of the anti-glare function of the exterior rearview mirror, thereby improving the rationality of the subsequent activation of the anti-glare function of the exterior rearview mirror.

[0054] Step 103: Determine whether to activate the anti-glare function of the exterior rearview mirror based on the first target ambient brightness and the second target ambient brightness.

[0055] Among them, the anti-glare function is a function that prevents excessive light reflected from the rearview mirror, thus avoiding glare for the user.

[0056] In this embodiment, after determining the first target ambient brightness and the second target ambient brightness, the anti-glare function activation device can determine whether the first target ambient brightness and the second target ambient brightness meet the preset anti-glare function activation conditions. If so, the anti-glare function of the exterior rearview mirror is activated; otherwise, the anti-glare function of the exterior rearview mirror remains deactivated. The anti-glare function activation conditions can be conditions for activating the anti-glare function, and these conditions can be set according to user needs, application scenarios, etc., and this embodiment does not impose any limitations.

[0057] In some embodiments of this disclosure, determining whether to activate the anti-glare function of the exterior rearview mirror based on the first target ambient brightness and the second target ambient brightness includes: determining the maximum difference between the first target ambient brightness and the second target ambient brightness; if the maximum difference is within a second preset difference range, then activating the anti-glare function of the exterior rearview mirror.

[0058] The maximum difference can be the numerical difference between the brightness of the first target environment and the brightness of the second target environment. The second preset difference range can be a pre-set range of the maximum difference that enables the anti-glare function of the exterior rearview mirror. The second preset difference range can be set according to user needs, application scenarios, etc., and this embodiment does not impose any restrictions. It can be understood that if the maximum difference is within the second preset difference range, the anti-glare function of the exterior rearview mirror is enabled; if the maximum difference is not within the second preset difference range, the anti-glare function of the exterior rearview mirror is not enabled.

[0059] In this embodiment, the difference between the brightness of the first target environment and the brightness of the second target environment is calculated to obtain the maximum difference. It is then determined whether this maximum difference is within a second preset difference range. If so, the anti-glare function of the exterior rearview mirror is activated. Otherwise, the anti-glare function of the exterior rearview mirror remains off.

[0060] In the above scheme, based on the premise that there is a relatively bright light source in the environmental area that the interior rearview mirror can observe, if the maximum difference is within the second preset difference range, it means that the exterior rearview mirror can observe a light source with a brightness close to that observed by the interior rearview mirror, thereby activating the anti-glare function of the exterior rearview mirror and improving the rationality of activating the anti-glare function of the exterior rearview mirror.

[0061] The method for activating the anti-glare function provided in this embodiment determines a first target ambient brightness of a first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of the first local ambient brightness of the first environmental area; if the first target ambient brightness and the overall ambient brightness meet a preset brightness condition, then a second target ambient brightness of a second environmental area of ​​the target vehicle is determined; wherein, the overall ambient brightness is the ambient brightness collected by a preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area; based on the first target ambient brightness and the second target ambient brightness, it is determined whether to activate the anti-glare function of the exterior rearview mirror. In this embodiment, the maximum local ambient brightness of the area observable by the interior rearview mirror is determined, and the overall ambient brightness collected by the preset light sensor of the target vehicle is also determined. The overall ambient brightness and the maximum local ambient brightness corresponding to the interior rearview mirror can then be used to characterize whether an excessively bright light source is observed in the interior rearview mirror relative to the overall actual environment. If an excessively bright light source is observed in the interior rearview mirror, the maximum local ambient brightness of the area observable by the exterior rearview mirror is determined. Based on these two maximum local ambient brightness values, it is determined whether an excessively bright light source is observed in the exterior rearview mirror, and thus whether to activate the anti-glare function of the exterior rearview mirror. With existing vehicle equipment, the anti-glare function of the exterior rearview mirror is precisely and automatically activated based on the actual environment of the vehicle, improving the user's driving safety.

[0062] In some embodiments of this disclosure, the anti-glare function activation device can determine the brightness of the first target environment based on the rear image captured by the rearview camera corresponding to the rearview mirror. Figure 2 A flowchart illustrating a method for determining the brightness of a first target environment provided in an embodiment of this disclosure is shown below. Figure 2As shown, determining the first target ambient brightness of the first environmental area of ​​the target vehicle includes:

[0063] Step 201: Obtain the rear view image captured by the rearview camera of the target vehicle.

[0064] The rear-view camera can be a camera whose field of view includes the area directly behind the target vehicle. The rear-view camera can be a camera facing the rear of the target vehicle. This embodiment does not limit the placement of the rear-view camera. For example, the rear-view camera can be placed on the rear part of the target vehicle, or the rear-view camera can be placed inside the target vehicle.

[0065] In one optional implementation, the rear-view camera can be a camera used in an imaging system to capture rear images. For example, the rear-view camera can be a rear-facing camera in an Around View Monitor (AVM) system; or, the rear-view camera can be a rear-facing camera in an Advanced Driver Assistance System (ADAS). Understandably, because the camera in an ADAS system has a longer viewing distance, it can observe light at a greater distance, thereby improving the accuracy of the final determination of whether to activate the anti-glare function. The rear image can be an image captured by the rear camera. This embodiment does not limit the format of the rear image; for example, the format of the rear image can be a raw image file (RAW).

[0066] In this embodiment, a rear-view camera is used to capture the rear view image corresponding to the interior rearview mirror. Figure 3 This is a schematic diagram of a camera viewfinder area provided in an embodiment of this disclosure, such as... Figure 3 As shown, the rearview camera's field of view includes the area directly behind the target vehicle.

[0067] During the driving of the target vehicle, the rear-view camera collects images of the rear in real time, and the anti-glare function is activated to acquire these images.

[0068] Step 202: Perform brightness processing on the rear image to obtain the first target ambient brightness of the first environment region.

[0069] The brightness processing may include maximum image brightness recognition and brightness conversion between image brightness and ambient brightness. The first ambient area can be the area that the user can observe through the rearview mirror from the driver's position.

[0070] In this embodiment of the present disclosure, after obtaining the rear image, the anti-glare function activation device can crop the rear image according to the preset rearview mirror area corresponding to the rearview mirror, and perform brightness processing such as maximum image brightness recognition and brightness conversion on the cropped rear image to obtain the first target environment brightness. The first target environment brightness records the maximum value of the first local environment brightness in the first environment area that can be observed by the rearview mirror.

[0071] In the above scheme, the brightness of the first target environment is determined based on image processing.

[0072] Figure 4 This is a schematic flowchart illustrating the brightness processing of a rear image according to an embodiment of the present disclosure, such as... Figure 4 As shown, in some embodiments of this disclosure, brightness processing is performed on the rear image to obtain a first target ambient brightness for a first ambient area, including:

[0073] Step 401: Identify the first target local image with the highest image brightness in the rear image, and determine the image brightness of the first target local image as the first target local image brightness; wherein, the first target local image is located within a preset rearview mirror area in the rear image.

[0074] The first target local image can be the local image with the highest brightness among multiple local images divided from the subsequent image. Alternatively, the first target local image can be a local image determined by identifying the maximum image brightness in the subsequent image. Image brightness can refer to the brightness of the image, specifically the brightness presented by the image. The brightness of the first target local image can be understood as the maximum value of image brightness in a local area of ​​the subsequent image.

[0075] The preset rearview mirror area can be the area visible through the rearview mirror in the rear view image. This preset rearview mirror area can correspond to the rear-view camera. For example, Figure 5 This is a schematic diagram of a preset rearview mirror area corresponding to a rearview camera provided in an embodiment of this disclosure, as shown below. Figure 5 As shown, region 501 in the rear image 500 captured by the rear-view camera is a preset interior rearview mirror region, which is located in the middle of the rear image 500.

[0076] In this embodiment of the disclosure, there are various methods for determining the target local image, and this embodiment does not limit the methods. Examples are illustrated below:

[0077] In one optional implementation, a first target local image in the rear image can be determined based on a grid partitioning method. Specifically, identifying the first target local image with the highest image brightness in the rear image includes:

[0078] Step a1: Divide the rear image into a grid according to the preset number of rows and columns to obtain multiple first candidate local images within the preset inner rearview mirror area.

[0079] The preset number of rows can be a pre-set number of rows obtained after dividing the rear image. This preset number of rows can be a positive integer M. This embodiment does not limit the preset number of rows; it can be set according to user needs or the sensitivity of image brightness recognition. The preset number of columns can be a pre-set number of columns obtained after dividing the rear image. This preset number of columns can be a positive integer N. This embodiment does not limit the preset number of columns; it can be set according to user needs or the sensitivity of image brightness recognition. The first candidate local image can be the first local image located within a preset rearview mirror area among multiple first local images obtained by dividing the rear image.

[0080] In this embodiment, the device for activating the anti-glare function may include an image signal processing (ISP) unit. The image signal processing unit can divide the overall rear image into a grid according to a preset number of rows and columns to obtain multiple first local images. Furthermore, the first local images located within the preset image area are determined as multiple first candidate local images.

[0081] Alternatively, the anti-glare function activation device can first capture the rear image according to the preset rearview mirror area to obtain a first captured image, and then divide the first captured image into a grid according to the preset number of rows and preset number of columns through the image signal processing unit to obtain a first candidate local image.

[0082] Step a2: Determine the brightness of multiple first local images corresponding to multiple first candidate local images, and determine the candidate local image corresponding to the maximum brightness among the multiple first local images as the first target local image.

[0083] The brightness of the first local image can be the brightness of the first candidate local image.

[0084] In this embodiment, the anti-glare function activation device can use each first candidate local image as a calculation area to calculate the local image brightness of each first candidate local image, thereby obtaining multiple first local image brightness values. The maximum value among these multiple first local image brightness values ​​is then determined, and the first candidate local image corresponding to this maximum value is identified as the first target local image.

[0085] In the above scheme, based on the grid division of the rear image, the location of the first local image can be determined simultaneously, providing a basis for determining the first candidate local image within the preset rearview mirror area. Furthermore, this method requires less computational power and can determine the target local image relatively quickly.

[0086] In another alternative implementation, the target local image in the rear image can be determined based on image processing methods. Specifically, identifying the first target local image with the highest image brightness in the rear image includes:

[0087] Step b1: Perform grayscale processing and Gaussian processing on the rear image to obtain the first processed image.

[0088] Grayscale processing can be a method of converting an image from color to grayscale; this embodiment does not limit the specific method of grayscale processing. Gaussian processing, also known as Gaussian blurring, can reduce noise and detail levels in an image, thereby avoiding the influence of high-brightness noise on the final determined target local image. The first processed image can be an image obtained by processing subsequent images.

[0089] In this embodiment, the anti-glare function activation device can perform grayscale processing and Gaussian processing on the rear image to obtain a first processed image that has completed grayscale conversion and noise reduction.

[0090] Step b2: Determine a portion of the first processed image located within a preset rearview mirror area as the first intermediate image, and determine a first target pixel in the first intermediate image whose image brightness is greater than a preset image brightness threshold.

[0091] The preset image brightness threshold can be a pre-set maximum value that will not cause glare to the user. This preset image brightness threshold can be set according to user needs, etc., and this embodiment does not impose any restrictions.

[0092] In this embodiment, after determining the first processed image, the first processed image is cropped according to a preset rearview mirror area, and the cropped portion is determined as the first intermediate image. For each pixel in the first intermediate image, the image brightness of the pixel is determined, and it is determined whether the image brightness is greater than a preset image brightness threshold. If so, the pixel is determined as the first target pixel.

[0093] Step b3: Determine the first sampling position of the preset sampling box in the rear image based on the position of the first target pixel, and use the preset sampling box to sample the rear image based on the first sampling position to obtain the local image of the first target.

[0094] The preset sampling frame can be a pre-defined frame used to sample the background image to obtain a local image of the target. This embodiment does not limit the size of the sampling frame; it can be set according to user needs or the sensitivity of image brightness recognition. The shape of the sampling frame is also not limited; for example, it can be rectangular or circular. The sampling position is the location of the preset sampling frame when sampling the background image.

[0095] In this embodiment, after determining the first target pixel, the anti-glare function activation device determines the position of each first target pixel and performs clustering processing on the positions of the first target pixels. The center point of the clustering result is determined as the first sampling position of the preset sampling frame. The preset sampling frame is sampled at this first sampling position in the rear image to obtain a local image of the first target.

[0096] In the above scheme, a portion of the image located in the preset image area can be treated as a whole for the identification of the target local image. The final determined target local image can more accurately represent the local image with the highest image brightness.

[0097] Step 402: Convert the brightness of the local image of the first target to obtain the ambient brightness of the first target.

[0098] The first target ambient brightness can be the ambient brightness corresponding to the local image brightness of the first target, and the first target ambient brightness can be the local maximum ambient brightness representing the preset rearview mirror area.

[0099] In this embodiment, after determining the brightness of the first target local image, the brightness of the first target local image is converted into the brightness of the first target ambient image. There are various methods for converting the brightness of the first target local image into the brightness of the first target ambient image; this embodiment does not limit the method. Examples are illustrated below:

[0100] In one optional implementation, the shooting process of the rear image can be determined based on the camera parameters of the rear image, and the shooting process can be reversed to obtain the shooting inverse process. Based on the shooting inverse process, the brightness of the local image of the first target can be restored to the ambient brightness of the first target.

[0101] In another optional implementation, the brightness of the target local image is converted to obtain the first target ambient brightness, including:

[0102] The first camera parameters of the rear image are determined, and the first camera parameters are input into a preset coefficient adjustment relationship to obtain the first adjustment value corresponding to the rear image; wherein, the camera parameters include at least one of the following: exposure parameters, gain coefficient, and gamma coefficient; the local image of the first target is adjusted according to the first adjustment value to obtain the ambient brightness of the first target.

[0103] Among these, the camera parameters can be the parameters of the rear camera when capturing images from behind. Exposure parameters include, but are not limited to, at least one of: exposure coefficient and exposure mode. The exposure coefficient can be a quantity representing the amount of exposure. The exposure mode can be a quantity representing the type of exposure, which includes, but is not limited to: long and short exposures, and multi-frame synthesis. The gain coefficient is also known as image gain. The gamma coefficient is also known as the gamma transform coefficient.

[0104] The preset coefficient adjustment relationship can be the correspondence between pre-calibrated camera parameters and adjustment values. The first adjustment value can be the conversion value for adjusting the local image of the first target to the ambient brightness.

[0105] In this embodiment, a rear camera is used to capture images of the ambient brightness using different camera parameters to obtain corresponding images, and the image brightness of the captured images is determined. The ambient brightness is divided by the image brightness of the captured images to obtain an adjustment value. The adjustment values ​​corresponding to different camera parameters are determined. A pre-defined coefficient adjustment relationship is obtained by fitting and calibrating the correspondence between the camera coefficients and the corresponding adjustment values. Further, after determining the rear image, the pre-defined coefficient adjustment relationship is queried based on the camera parameters of the rear image to obtain a first adjustment value corresponding to the rear image. This first adjustment value is multiplied by the brightness of the first target local image to obtain the first target ambient brightness.

[0106] In the above scheme, a preset coefficient adjustment relationship is established by calibration. Based on this preset coefficient adjustment relationship, the image brightness can be quickly converted into the ambient brightness with less computing power, thus improving the timeliness of activating the anti-glare function.

[0107] In some embodiments of this disclosure, determining the second target ambient brightness of the second environmental region of the target vehicle includes: acquiring a rear-view image captured by a rear-view camera of the target vehicle; and performing brightness processing on the rear-view image to obtain the second target ambient brightness of the second environmental region.

[0108] The rear-view camera, also known as a side-rearview camera, can be a camera whose view area includes the side and rear of the target vehicle. The rear-view camera can be a camera facing the side and rear of the target vehicle. This embodiment does not limit the placement of the rear-view camera. For example, the rear-view camera can be placed on the exterior rearview mirror of the target vehicle, or it can be placed on the side of the vehicle body. The rear-view camera can include a left rear-view camera and a right rear-view camera. The left rear-view camera can be a camera whose view area includes the left rear side of the target vehicle. The right rear-view camera can be a camera whose view area includes the right rear side of the target vehicle. The second environmental area can be the area that the user can observe through the exterior rearview mirror from the driver's seat.

[0109] In one alternative implementation, the rear-view camera can be a camera used in an imaging system to acquire images of the side and rear. For example, the rear-view camera can be a camera facing the side and rear of the vehicle in a panoramic monitoring imaging system; or, the rear-view camera can be a camera facing the side and rear of the vehicle in an advanced driver assistance system.

[0110] The rear-view image can be an image captured by a rear-view camera. This embodiment does not limit the format of the rear-view image; for example, the format of the rear-view image can be a raw image file (RAW).

[0111] In this embodiment, the rear image corresponding to the left rearview mirror is captured by the left rear-view camera, and the rear image corresponding to the right rearview mirror is captured by the right rear-view camera. For example... Figure 3 As shown, the view area of ​​the left rear-view camera includes the area behind the left side of the target vehicle, and the view area of ​​the right rear-view camera includes the area behind the right side of the target vehicle.

[0112] During the vehicle's movement, the rear-view camera captures rear-view images in real time, and the anti-glare function acquires these images. Then, the rear-view image is cropped according to a preset area corresponding to the exterior rearview mirror. The cropped image undergoes brightness processing, including maximum image brightness recognition and brightness conversion, to obtain the second target environment brightness. This second target environment brightness records the maximum value of the second local environment brightness within the second environmental area observable by the exterior rearview mirror.

[0113] Figure 6 This is a schematic diagram of a process for brightness processing of a rear image provided in an embodiment of this disclosure, such as... Figure 6As shown, in some embodiments of this disclosure, brightness processing is performed on the rear image to obtain a second target ambient brightness for the second ambient region, including:

[0114] Step 601: Identify the second target local image with the highest image brightness in the rear image, and determine the image brightness of the second target local image as the second target local image brightness; wherein, the second target local image is located within a preset external rearview mirror area of ​​the rear image.

[0115] The second target local image can be the second local image with the highest brightness among multiple second local images divided from the rear image. Alternatively, the second target local image can be the second local image determined by identifying the maximum image brightness in the rear image. The brightness of the second target local image can be understood as the maximum image brightness in a local part of the rear image.

[0116] The preset exterior rearview mirror area can be the area visible through the exterior rearview mirror in the rear view image. This preset exterior rearview mirror area can correspond to the rear-view camera. For example, Figure 7 This is a schematic diagram of a preset exterior rearview mirror area corresponding to a left rear-view camera provided in an embodiment of this disclosure, as shown below. Figure 7 As shown, region 701 in the rear image 700 captured by the left rear-view camera is the preset exterior rearview mirror region, which is located on the left side of the rear image 700. Figure 8 This is a schematic diagram of a preset image area corresponding to a right rear-view camera provided in an embodiment of this disclosure, as shown below. Figure 8 As shown, region 801 in the rear image 800 captured by the right rear-view camera is a preset image region, which is located on the right side of the rear image 800.

[0117] In this embodiment, there are various methods for determining the local image of the second target, and this embodiment does not limit the methods. Examples are illustrated below:

[0118] In one optional implementation, the second target local image in the rear image can be determined based on a grid partitioning method. Specifically, identifying the second target local image with the highest image brightness in the rear image includes:

[0119] Step c1: Divide the rear image into a grid according to the preset number of rows and columns to obtain multiple second candidate local images within the preset external rearview mirror area.

[0120] The second candidate local image can be the second local image located within the rearview mirror area from among multiple second local images obtained by dividing the rear side image.

[0121] In this embodiment, the device for activating the anti-glare function may include an image signal processing unit. The image signal processing unit can divide the overall rear image into a grid according to a preset number of rows and columns to obtain multiple second local images. Furthermore, the second local images located within a preset external rearview mirror area are determined as multiple second candidate local images.

[0122] Alternatively, the anti-glare function activation device can first capture the rear image based on the external rearview mirror area to obtain a second captured image, and then use an image signal processing unit to divide the second captured image into a grid according to a preset number of rows and columns to obtain a second candidate local image.

[0123] Step c2: Determine the brightness of multiple second local images corresponding to multiple second candidate local images, and determine the second candidate local image corresponding to the maximum brightness among the multiple second local images as the second target local image.

[0124] In this embodiment, the anti-glare function activation device can use each second candidate local image as a calculation area to calculate the local image brightness of each second candidate local image, thereby obtaining multiple second local image brightness values. The maximum value among these multiple second local image brightness values ​​is then determined, and the second candidate local image corresponding to this maximum value is identified as the second target local image.

[0125] In the above scheme, based on the grid division of the rear image, the location of the local image can be determined simultaneously, providing a basis for determining the second candidate local image within the preset rearview mirror area. Furthermore, this scheme requires less computing power and can determine the second target local image relatively quickly.

[0126] In another alternative implementation, the second target local image in the rear image can be determined based on image processing methods. Specifically, identifying the second target local image with the highest image brightness in the rear image includes:

[0127] Step d1 involves performing grayscale and Gaussian processing on the rear image to obtain the second processed image.

[0128] The second processed image can be an image obtained by processing the rear image.

[0129] In this embodiment, the anti-glare function activation device can perform grayscale processing and Gaussian processing on the rear image to obtain a second processed image that has completed grayscale conversion and noise reduction.

[0130] Step d2: Determine a portion of the second processed image located within a preset external rearview mirror area as the second intermediate image, and determine the second target pixel point in the second intermediate image whose image brightness is greater than a preset image brightness threshold.

[0131] In this embodiment, after determining the second processed image, the second processed image is cropped according to a preset exterior rearview mirror area, and the cropped portion is determined as the second intermediate image. For each pixel in the second intermediate image, the image brightness of the pixel is determined, and it is determined whether the image brightness is greater than a preset image brightness threshold. If so, the pixel is determined as the second target pixel.

[0132] Step d3: Determine the second sampling position of the preset sampling box in the rear image based on the position of the second target pixel, and use the preset sampling box to sample the rear image according to the second sampling position to obtain the local image of the second target.

[0133] In this embodiment, after determining the second target pixel, the anti-glare function activation device determines the position of each second target pixel and performs clustering processing on the positions of the second target pixels. The center point of the clustering result is determined as the second sampling position of the preset sampling frame. The preset sampling frame is sampled at this second sampling position in the rear image to obtain a local image of the second target.

[0134] In the above scheme, a portion of the image located in the preset external rearview mirror area can be treated as a whole for the identification of the second target local image. The final determined second target local image can more accurately represent the local image with the highest image brightness.

[0135] Step 602: Convert the brightness of the local image of the second target to obtain the ambient brightness of the second target.

[0136] The second target ambient brightness can be the ambient brightness corresponding to the local image brightness of the second target, and the second target ambient brightness can be the local maximum ambient brightness representing the second environment region.

[0137] In this embodiment, after determining the brightness of the local image of the second target, the overall image brightness and the local image brightness of the second target are converted into the ambient brightness of the second target. There are various methods for converting the local image brightness of the second target into the ambient brightness of the second target; this embodiment does not limit the method. An example is illustrated below:

[0138] In one optional implementation, the shooting process of the rear image can be determined based on the camera parameters of the rear image, and the shooting process can be reversed to obtain the shooting inverse process. Based on the shooting inverse process, the brightness of the local image of the second target can be restored to the ambient brightness of the second target.

[0139] In another optional implementation, the brightness of the local image of the second target is converted to obtain the ambient brightness of the second target, including:

[0140] Determine the second camera parameters of the rear image, input the second camera parameters into a preset coefficient adjustment relationship to obtain the second adjustment value corresponding to the rear image; adjust the brightness of the local image of the second target according to the second adjustment value to obtain the ambient brightness of the second target.

[0141] Among them, the camera parameters can be the parameters of the rear camera when capturing rear images.

[0142] In this embodiment of the disclosure, after determining the rear image, the preset coefficient adjustment relationship is queried based on the camera parameters of the rear image to obtain the adjustment value corresponding to the rear image. This adjustment value is then multiplied by the brightness of the second target local image to obtain the second target ambient brightness.

[0143] In the above scheme, a preset coefficient adjustment relationship is established through calibration. Based on this preset coefficient adjustment relationship, the image brightness can be quickly converted to the ambient brightness with relatively low computing power, improving the timeliness of activating the anti-glare function. Furthermore, since the camera corresponds to the rearview mirror, the image captured by the camera more closely matches the environmental area observable through the rearview mirror, enabling more accurate determination of whether to activate the rearview mirror's anti-glare function and improving driving safety.

[0144] In related technologies, photosensitive sensors are installed on the front and rear sides of a rearview mirror with anti-glare function. However, to ensure that external light can enter the photosensitive sensors, it is necessary to avoid obstruction of the light path by vehicle components. This limits the design of several parts of the vehicle, such as the front and rear windows, as well as the arrangement of components inside the vehicle. The anti-glare function activation method provided in this disclosure allows the rearview camera and rear side camera to be existing vehicle cameras. Since it avoids the need for additional photosensitive sensors for the anti-glare function, it eliminates the need to avoid obstructing the light path of these sensors, thereby removing the limitations on vehicle component arrangement and design.

[0145] Figure 9 A schematic diagram of the structure of an anti-glare function activation device provided in an embodiment of this disclosure is shown.

[0146] In some embodiments of this disclosure, Figure 9 The anti-glare function activation device shown can be executed by an electronic device or a server. The electronic device can be, but is not limited to, mobile terminals such as vehicle-mounted terminals, and fixed terminals such as vehicle domain controllers. The server can be a server cluster or a cloud server.

[0147] like Figure 9 As shown, the anti-glare function activation device 900 may include: a first determining module 901, a second determining module 902, and a judging module 903.

[0148] The first determining module 901 is used to determine the first target ambient brightness of the first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of the first local ambient brightness of the first environmental area.

[0149] The second determining module 902 is used to determine the second target ambient brightness of the second environmental area of ​​the target vehicle if the first target ambient brightness and the overall ambient brightness meet a preset brightness condition; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area.

[0150] The judgment module 903 is used to determine whether to enable the anti-glare function of the exterior rearview mirror based on the brightness of the first target environment and the brightness of the second target environment.

[0151] Optionally, the first determining module 901 includes:

[0152] The first acquisition submodule is used to acquire the rear image captured by the rear-view camera of the target vehicle;

[0153] The first processing submodule is used to perform brightness processing on the rear image to obtain the first target ambient brightness of the first environmental area.

[0154] Optionally, the first processing submodule includes:

[0155] A brightness determination unit is used to identify a first target local image with the highest image brightness in the rear image, and to determine the image brightness of the first target local image as the brightness of the first target local image; wherein the first target local image is located within a preset rearview mirror area in the rear image;

[0156] A brightness conversion unit is used to convert the brightness of the local image of the first target to obtain the ambient brightness of the first target.

[0157] Optionally, the brightness determination unit is used for:

[0158] The rear image is divided into grids according to a preset number of rows and a preset number of columns to obtain multiple first candidate local images within the preset inner rearview mirror area;

[0159] Determine the brightness of multiple first local images corresponding to the multiple first candidate local images, and determine the candidate local image corresponding to the maximum brightness among the multiple first local images as the first target local image.

[0160] Optionally, the brightness conversion unit is used for:

[0161] A first camera parameter of the rear image is determined, and the first camera parameter is input into a preset coefficient adjustment relationship to obtain a first adjustment value corresponding to the rear image; wherein, the camera parameter includes at least one of the following: exposure parameter, gain coefficient, and gamma coefficient;

[0162] The brightness of the local image of the first target is adjusted according to the first adjustment value to obtain the ambient brightness of the first target.

[0163] Optionally, the second determining module 902 includes:

[0164] The second acquisition submodule is used to acquire the rear-side image captured by the rear-view camera of the target vehicle;

[0165] The second processing submodule is used to perform brightness processing on the rear image to obtain the second target ambient brightness of the second environment region.

[0166] Optionally, the second processing submodule is used for:

[0167] Identify the second target local image with the highest image brightness in the rear image, and determine the image brightness of the second target local image as the second target local image brightness; wherein, the second target local image is located within a preset exterior rearview mirror area in the rear image;

[0168] The brightness of the local image of the second target is converted to obtain the ambient brightness of the second target.

[0169] Optionally, the second determining module 902 is configured to:

[0170] Determine the ambient brightness difference between the first target ambient brightness and the overall ambient brightness;

[0171] If the ambient brightness difference is within the first preset difference range, then the preset brightness condition is met.

[0172] Optionally, the determination module 903 is used for:

[0173] Determine the maximum difference between the first target ambient brightness and the second target ambient brightness;

[0174] If the maximum difference is within the second preset difference range, then the anti-glare function of the exterior rearview mirror is activated.

[0175] The anti-glare function activation device provided in this disclosure can execute the anti-glare function activation method provided in any embodiment of this disclosure, and has the corresponding functional modules and beneficial effects of the method.

[0176] Figure 10 A schematic diagram of the hardware circuit structure of an anti-glare function activation device provided in an embodiment of this disclosure is shown.

[0177] like Figure 10 As shown, the device 1000 for activating the anti-glare function may include a controller 1001 and a memory 1002 storing computer program instructions.

[0178] Specifically, the controller 1001 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0179] Memory 1002 may include a mass storage device for information or instructions. For example, and not limitingly, memory 1002 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 1002 may include removable or non-removable (or fixed) media. Where appropriate, memory 1002 may be internal or external to the integrated gateway device. In a particular embodiment, memory 1002 is a non-volatile solid-state memory. In a particular embodiment, memory 1002 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0180] The controller 1001 reads and executes computer program instructions stored in the memory 1002 to perform the steps of the method for activating the anti-glare function provided in this embodiment of the disclosure.

[0181] In one example, the device 1000 for activating the anti-glare function may further include a transceiver 1003 and a bus 1004. For example, Figure 10 As shown, the controller 1001, memory 1002 and transceiver 1003 are connected via bus 1004 and communicate with each other.

[0182] Bus 1004 may include hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 1004 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0183] The following are embodiments of a computer-readable storage medium provided in this disclosure. This computer-readable storage medium and the method for enabling the anti-glare function in the above embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the computer-readable storage medium, please refer to the embodiments of the method for enabling the anti-glare function described above.

[0184] This embodiment provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform a method for activating an anti-glare function.

[0185] Of course, the computer-executable instructions provided in the embodiments of this disclosure are not limited to the above-described method operations, but can also perform related operations in the method for enabling the anti-glare function provided in any embodiment of this disclosure.

[0186] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this disclosure can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer cloud platform (which may be a personal computer, server, or network cloud platform, etc.) to execute the anti-glare function activation method provided in the various embodiments of this disclosure.

[0187] This disclosure also provides a vehicle, including at least one of the following: the aforementioned anti-glare function activation device; the aforementioned electronic device; and the aforementioned computer-readable storage medium.

[0188] Note that the above description is merely a preferred embodiment and the technical principles employed in this disclosure. Those skilled in the art will understand that this disclosure is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this disclosure. Therefore, although this disclosure has been described in detail through the above embodiments, it is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this disclosure, and the scope of this disclosure is determined by the scope of the appended claims.

Claims

1. A method for activating an anti-glare function, characterized in that, include: Determine a first target ambient brightness for a first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of a first local ambient brightness of the first environmental area; If the first target ambient brightness and the overall ambient brightness meet the preset brightness conditions, then the second target ambient brightness of the second environmental area of ​​the target vehicle is determined; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area; Based on the first target ambient brightness and the second target ambient brightness, determine whether to activate the anti-glare function of the exterior rearview mirror.

2. The method according to claim 1, characterized in that, The determination of the first target ambient brightness of the first environmental area of ​​the target vehicle includes: Acquire the rear view image captured by the rear-view camera of the target vehicle; The rear image is processed for brightness to obtain the first target ambient brightness of the first environment area.

3. The method according to claim 2, characterized in that, The step of performing brightness processing on the rear image to obtain the first target ambient brightness of the first environmental region includes: Identify the first target local image with the highest image brightness in the rear image, and determine the image brightness of the first target local image as the first target local image brightness; wherein, the first target local image is located within a preset rearview mirror area in the rear image; The brightness of the local image of the first target is converted to obtain the ambient brightness of the first target.

4. The method according to claim 3, characterized in that, The process of identifying the first target local image with the highest image brightness in the rear image includes: The rear image is divided into grids according to a preset number of rows and a preset number of columns to obtain multiple first candidate local images within the preset inner rearview mirror area; Determine the brightness of multiple first local images corresponding to the multiple first candidate local images, and determine the candidate local image corresponding to the maximum brightness among the multiple first local images as the first target local image.

5. The method according to claim 3, characterized in that, The step of converting the brightness of the local image of the first target to obtain the ambient brightness of the first target includes: A first camera parameter of the rear image is determined, and the first camera parameter is input into a preset coefficient adjustment relationship to obtain a first adjustment value corresponding to the rear image; wherein, the camera parameter includes at least one of the following: exposure parameter, gain coefficient, and gamma coefficient; The brightness of the local image of the first target is adjusted according to the first adjustment value to obtain the ambient brightness of the first target.

6. The method according to claim 1, characterized in that, The determination of the second target ambient brightness of the second environmental area of ​​the target vehicle includes: Acquire the rear-view image captured by the rear-view camera of the target vehicle; The rear image is processed for brightness to obtain the second target ambient brightness of the second environment region.

7. The method according to claim 6, characterized in that, The step of performing brightness processing on the rear image to obtain the second target ambient brightness of the second environmental region includes: Identify the second target local image with the highest image brightness in the rear image, and determine the image brightness of the second target local image as the second target local image brightness; wherein, the second target local image is located within a preset exterior rearview mirror area in the rear image; The brightness of the local image of the second target is converted to obtain the ambient brightness of the second target.

8. The method according to claim 1, characterized in that, The first target ambient brightness and the overall ambient brightness meet preset brightness conditions, including: Determine the ambient brightness difference between the first target ambient brightness and the overall ambient brightness; If the ambient brightness difference is within the first preset difference range, then the preset brightness condition is met.

9. The method according to claim 1, characterized in that, The step of determining whether to activate the anti-glare function of the exterior rearview mirror based on the first target ambient brightness and the second target ambient brightness includes: Determine the maximum difference between the first target ambient brightness and the second target ambient brightness; If the maximum difference is within the second preset difference range, then the anti-glare function of the exterior rearview mirror is activated.

10. An anti-glare activation device, characterized in that, include: The first determining module is used to determine the first target ambient brightness of the first environmental area of ​​the target vehicle; wherein, the first environmental area is the environmental area that can be observed through the rearview mirror of the target vehicle, and the first target ambient brightness is the maximum value of the first local ambient brightness of the first environmental area. The second determining module is used to determine the second target ambient brightness of the second environmental area of ​​the target vehicle if the first target ambient brightness and the overall ambient brightness meet a preset brightness condition; wherein, the overall ambient brightness is the ambient brightness collected by the preset light sensor of the target vehicle, the second environmental area is the environmental area that can be observed through the exterior rearview mirror of the target vehicle, and the second target ambient brightness is the maximum value of the second local ambient brightness of the second environmental area. The judgment module is used to determine whether to activate the anti-glare function of the exterior rearview mirror based on the brightness of the first target environment and the brightness of the second target environment.

11. An electronic device, characterized in that, The electronic device includes: Processor and memory; The processor executes the steps of the method as described in any one of claims 1 to 9 by invoking programs or instructions stored in the memory.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program or instructions that cause a computer to perform the steps of the method as described in any one of claims 1 to 9.

13. A vehicle, characterized in that, Includes at least one of the following: The device for activating the anti-glare function as described in claim 10 above; The electronic device according to claim 11 above; The computer-readable storage medium as described in claim 12.

Citation Information

Patent Citations

  • Method and device for preventing glare of high beam of intelligent rearview mirror

    CN107856609A

  • Vehicle and method for controlling anti-dazzling rearview mirror

    CN113459953A